mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
use proper exception classes
This commit is contained in:
parent
de1b637a47
commit
c44a8949f7
@ -635,11 +635,7 @@ class HttpLayer(Layer):
|
||||
try:
|
||||
response = make_error_response(code, message)
|
||||
self.send_response(response)
|
||||
except Exception as e:
|
||||
self.log(
|
||||
"error: %s" % repr(e),
|
||||
level="debug"
|
||||
)
|
||||
except NetlibException, h2.exceptions.H2Error:
|
||||
pass
|
||||
|
||||
def change_upstream_proxy_server(self, address):
|
||||
|
Loading…
Reference in New Issue
Block a user