diff --git a/proxyclient/m1n1/shell.py b/proxyclient/m1n1/shell.py index 06e060514..451a0c3aa 100644 --- a/proxyclient/m1n1/shell.py +++ b/proxyclient/m1n1/shell.py @@ -30,7 +30,10 @@ def init_history(self, histfile): def save_history(self): readline.set_history_length(10000) - readline.write_history_file(self.histfile) + try: + readline.write_history_file(self.histfile) + except OSError as e: + print(f"Failed writing history to {self.histfile}: {e}", file=sys.stderr) def showtraceback(self): type, value, tb = sys.exc_info()