mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
check for channel error location
This commit is contained in:
parent
cf8c063773
commit
9759207c8d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user