Skip to content

Commit 0d1261e

Browse files
committed
Fixed bug where self.persistent_history_file attribute didn't exist
1 parent b80f9c7 commit 0d1261e

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)