mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-01 15:55:28 +00:00
fix exception re-raise
This commit is contained in:
parent
35a99d2faf
commit
33c0d36530
@ -383,7 +383,7 @@ class HttpLayer(Layer):
|
||||
except NetLibError:
|
||||
pass
|
||||
if isinstance(e, ProtocolException):
|
||||
six.reraise(*sys.exc_info())
|
||||
six.reraise(ProtocolException, e, sys.exc_info()[2])
|
||||
else:
|
||||
six.reraise(ProtocolException, ProtocolException("Error in HTTP connection: %s" % repr(e), e), sys.exc_info()[2])
|
||||
finally:
|
||||
|
Loading…
Reference in New Issue
Block a user