aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordeployable <code@deployable.co>2014-09-04 10:47:27 +0100
committerdeployable <code@deployable.co>2014-09-04 10:47:27 +0100
commit4bdd1ed9675cef4e8a559cdde945a2899200e38d (patch)
tree85da62c6d3c8924cefb60dbf06b20233ed12b01a
parent0c3b6ee667f6a73ae3ebd84b68c09cbf092c509c (diff)
downloadmitmproxy-4bdd1ed9675cef4e8a559cdde945a2899200e38d.tar.gz
mitmproxy-4bdd1ed9675cef4e8a559cdde945a2899200e38d.tar.bz2
mitmproxy-4bdd1ed9675cef4e8a559cdde945a2899200e38d.zip
Add urwid stop prior to stack trace so exceptions are not cleared from screen
-rw-r--r--libmproxy/console/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmproxy/console/__init__.py b/libmproxy/console/__init__.py
index 1325aae5..9d029610 100644
--- a/libmproxy/console/__init__.py
+++ b/libmproxy/console/__init__.py
@@ -599,6 +599,8 @@ class ConsoleMaster(flow.FlowMaster):
try:
self.ui.run_wrapper(self.loop)
except Exception:
+ self.ui.stop()
+ sys.stdout.flush()
print >> sys.stderr, traceback.format_exc()
print >> sys.stderr, "mitmproxy has crashed!"
print >> sys.stderr, "Please lodge a bug report at: https://github.com/mitmproxy/mitmproxy"