diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-28 22:55:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 22:55:11 -0500 |
commit | 2055dfc9a601d6f2b78e44690aeff475c79369d3 (patch) | |
tree | b715094fcca02b75cd98780eac2b23e18ad3f2ec /cmd2/cmd2.py | |
parent | b329218f3c96398840776b48403323214d7b489b (diff) | |
parent | f8b2407b6079853fdfdd5878480c6883e2c18ded (diff) | |
download | cmd2-git-2055dfc9a601d6f2b78e44690aeff475c79369d3.tar.gz |
Merge pull request #1049 from python-cmd2/header_tabs
Fixed width calculation when table column headers had tabs
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 8ad3f7ba..ab72f1a6 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -3989,7 +3989,10 @@ class Cmd(cmd.Cmd): self.history.clear() if self.persistent_history_file: - os.remove(self.persistent_history_file) + try: + os.remove(self.persistent_history_file) + except FileNotFoundError: + pass if rl_type != RlType.NONE: readline.clear_history() |