Skip to content

Commit d63f567

Browse files
authored
Merge pull request #544 from python-cmd2/hist_crash
Fixed bug where self.persistent_history_file attribute didn't exist
2 parents b80f9c7 + 0d1261e commit d63f567

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd2/cmd2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ def __init__(self, completekey: str='tab', stdin=None, stdout=None, persistent_h
441441
self.broken_pipe_warning = ''
442442

443443
# Check if history should persist
444+
self.persistent_history_file = ''
444445
if persistent_history_file and rl_type != RlType.NONE:
445446
persistent_history_file = os.path.expanduser(persistent_history_file)
446447
read_err = False

0 commit comments

Comments
 (0)