diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-05-27 14:02:56 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-05-27 14:02:56 -0400 |
commit | 916060bde828d8911ec2bbb4db54396212514481 (patch) | |
tree | 11dc0925c2225e37c9c99a37adfb421e24e6e02e /examples/exit_code.py | |
parent | f82c3653088f15bb33e2624fa0a3b5e9a6e74fb7 (diff) | |
download | cmd2-git-916060bde828d8911ec2bbb4db54396212514481.tar.gz |
Fix a bug discovered during manual testing
I found that at least with certain versions of Python and OSes, if I had a previous text-based readline history, an unhandled UnpicklingError exception could occur. So now we catch that and several other possible errors which can theoretically occur during unpickling and just move on with an empty history. The old file will get overwritten with one in the new format when the application exits.
Diffstat (limited to 'examples/exit_code.py')
0 files changed, 0 insertions, 0 deletions