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:
Noah Levitt 2015-09-22 18:35:59 +00:00
parent 4c380dcc41
commit abc2d28787

View File

@ -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):