1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-06-01 18:41:32 +00:00

Fix crash formatting traceback

This commit is contained in:
Mike Naberezny 2024-04-12 11:14:09 -07:00
parent 2b837bbd4f
commit 85ed46fd68

View File

@ -163,8 +163,8 @@ class Monitor(cmd.Cmd):
result = cmd.Cmd.onecmd(self, line) result = cmd.Cmd.onecmd(self, line)
except KeyboardInterrupt: except KeyboardInterrupt:
self._output("Interrupt") self._output("Interrupt")
except Exception as e: except Exception:
error = ''.join(traceback.format_exception(e)) error = ''.join(traceback.format_exception(*sys.exc_info()))
self._output(error) self._output(error)
if not line.startswith("quit"): if not line.startswith("quit"):