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:
parent
2b837bbd4f
commit
85ed46fd68
|
@ -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"):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user