Skip to content

Commit d0b69ec

Browse files
committed
Sorted exception list
1 parent 1a47a4b commit d0b69ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd2/cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4483,7 +4483,7 @@ def _initialize_history(self, hist_file: str) -> None:
44834483
except OSError as ex:
44844484
self.perror(f"Cannot read persistent history file '{hist_file}': {ex}")
44854485
return
4486-
except (lzma.LZMAError, json.JSONDecodeError, KeyError, UnicodeDecodeError, ValueError) as ex:
4486+
except (json.JSONDecodeError, lzma.LZMAError, KeyError, UnicodeDecodeError, ValueError) as ex:
44874487
self.perror(f"Error processing persistent history file '{hist_file}': {ex}")
44884488

44894489
self.history.start_session()

0 commit comments

Comments
 (0)