We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b837bb commit 85ed46fCopy full SHA for 85ed46f
py65/monitor.py
@@ -163,8 +163,8 @@ def onecmd(self, line):
163
result = cmd.Cmd.onecmd(self, line)
164
except KeyboardInterrupt:
165
self._output("Interrupt")
166
- except Exception as e:
167
- error = ''.join(traceback.format_exception(e))
+ except Exception:
+ error = ''.join(traceback.format_exception(*sys.exc_info()))
168
self._output(error)
169
170
if not line.startswith("quit"):
0 commit comments