mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
report actual exception, avoid incomprehensible error message "TypeError: NoneType object is not callable" in python2 (apparently due to fact that BaseHTTPServer.BaseHTTPRequestHandler is an old-style class)
This commit is contained in:
parent
4c380dcc41
commit
abc2d28787
@ -133,7 +133,7 @@ class MitmProxyHandler(http_server.BaseHTTPRequestHandler):
|
||||
try:
|
||||
self._proxy_request()
|
||||
except:
|
||||
self.logger.error("exception from {}".format(self._proxy_request), exc_info=True)
|
||||
self.logger.error("exception proxying request", exc_info=True)
|
||||
raise
|
||||
|
||||
def _proxy_request(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user