From 1e8c38d994040b6b39f4f6b7056d78b9105ad7d3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 1 Jun 2015 10:39:26 +0530 Subject: [PATCH] ... --- src/calibre/srv/http_response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/srv/http_response.py b/src/calibre/srv/http_response.py index d74f37a514..24ba6ba8a7 100644 --- a/src/calibre/srv/http_response.py +++ b/src/calibre/srv/http_response.py @@ -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)