mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Add urwid stop prior to stack trace so exceptions are not cleared from screen
This commit is contained in:
parent
0c3b6ee667
commit
4bdd1ed967
@ -599,6 +599,8 @@ class ConsoleMaster(flow.FlowMaster):
|
|||||||
try:
|
try:
|
||||||
self.ui.run_wrapper(self.loop)
|
self.ui.run_wrapper(self.loop)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
self.ui.stop()
|
||||||
|
sys.stdout.flush()
|
||||||
print >> sys.stderr, traceback.format_exc()
|
print >> sys.stderr, traceback.format_exc()
|
||||||
print >> sys.stderr, "mitmproxy has crashed!"
|
print >> sys.stderr, "mitmproxy has crashed!"
|
||||||
print >> sys.stderr, "Please lodge a bug report at: https://github.com/mitmproxy/mitmproxy"
|
print >> sys.stderr, "Please lodge a bug report at: https://github.com/mitmproxy/mitmproxy"
|
||||||
|
Loading…
Reference in New Issue
Block a user