Skip to content

Commit

Permalink
Fix crash formatting traceback
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaberez committed Apr 12, 2024
1 parent 2b837bb commit 85ed46f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py65/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def onecmd(self, line):
result = cmd.Cmd.onecmd(self, line)
except KeyboardInterrupt:
self._output("Interrupt")
except Exception as e:
error = ''.join(traceback.format_exception(e))
except Exception:
error = ''.join(traceback.format_exception(*sys.exc_info()))
self._output(error)

if not line.startswith("quit"):
Expand Down

0 comments on commit 85ed46f

Please sign in to comment.