Skip to content

Commit 85ed46f

Browse files
committed
Fix crash formatting traceback
1 parent 2b837bb commit 85ed46f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py65/monitor.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ def onecmd(self, line):
163163
result = cmd.Cmd.onecmd(self, line)
164164
except KeyboardInterrupt:
165165
self._output("Interrupt")
166-
except Exception as e:
167-
error = ''.join(traceback.format_exception(e))
166+
except Exception:
167+
error = ''.join(traceback.format_exception(*sys.exc_info()))
168168
self._output(error)
169169

170170
if not line.startswith("quit"):

0 commit comments

Comments
 (0)