summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2021-06-11 16:04:03 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2021-06-14 11:28:25 -0400
commitd0b69ecf4cdf880bbc54b41fe9c281cf9a1b7723 (patch)
tree9146506b50711c6af0f2ca728f67cd9513f26555
parent1a47a4bd5ef5b9a647a9adf4ee1c20e2bcc007dd (diff)
downloadcmd2-git-d0b69ecf4cdf880bbc54b41fe9c281cf9a1b7723.tar.gz
Sorted exception list
-rw-r--r--cmd2/cmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 37dbee78..de0621bf 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -4483,7 +4483,7 @@ class Cmd(cmd.Cmd):
except OSError as ex:
self.perror(f"Cannot read persistent history file '{hist_file}': {ex}")
return
- except (lzma.LZMAError, json.JSONDecodeError, KeyError, UnicodeDecodeError, ValueError) as ex:
+ except (json.JSONDecodeError, lzma.LZMAError, KeyError, UnicodeDecodeError, ValueError) as ex:
self.perror(f"Error processing persistent history file '{hist_file}': {ex}")
self.history.start_session()