mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
fix exception classes
This commit is contained in:
parent
738094e167
commit
74e62903c1
@ -235,7 +235,8 @@ class HttpLayer(Layer):
|
||||
try:
|
||||
response = make_error_response(code, message)
|
||||
self.send_response(response)
|
||||
except NetlibException as H2Error:
|
||||
except (NetlibException, H2Error):
|
||||
self.log(traceback.format_exc(), "debug")
|
||||
pass
|
||||
|
||||
def change_upstream_proxy_server(self, address):
|
||||
|
Loading…
Reference in New Issue
Block a user