diff options
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index ab72f1a6..51670235 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -3993,6 +3993,9 @@ class Cmd(cmd.Cmd): os.remove(self.persistent_history_file) except FileNotFoundError: pass + except OSError as ex: + self.pexcept("Error removing history file '{}': {}".format(self.persistent_history_file, ex)) + return if rl_type != RlType.NONE: readline.clear_history() |