This commit is contained in:
Kovid Goyal 2015-06-01 10:39:26 +05:30
parent e6de0db19d
commit 1e8c38d994

View File

@ -359,7 +359,7 @@ class HTTPConnection(HTTPRequest):
if e.location:
eh['Location'] = e.location
return self.simple_response(e.http_code, msg=e.message or '', close_after_response=e.close_connection, extra_headers=eh)
raise e, None, tb
raise etype, e, tb
data, output = result
output = self.finalize_output(output, data, self.method is HTTP1)