From 9759207c8d7a7f29f3a0ff630325f7abd3b1d2b1 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Wed, 3 Feb 2016 00:05:02 +0100 Subject: check for channel error location --- libmproxy/protocol/http.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libmproxy/protocol/http.py') diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index d9803a37..377e1670 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -219,6 +219,10 @@ class HttpLayer(Layer): else: six.reraise(ProtocolException, ProtocolException( "Error in HTTP connection: %s" % repr(e)), sys.exc_info()[2]) + except Exception: + import traceback + traceback.print_exc() + six.reraise(*sys.exc_info()[:3]) finally: flow.live = False -- cgit v1.2.3