From 3db4587313b859f0540a8f077b27f2590881113a Mon Sep 17 00:00:00 2001 From: RaNaN <Mast3rRaNaN@hotmail.de> Date: Sat, 17 Sep 2011 22:18:14 +0200 Subject: little fix in debug reports --- module/network/HTTPRequest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'module/network/HTTPRequest.py') diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py index 88f75c828..d8d57e76f 100644 --- a/module/network/HTTPRequest.py +++ b/module/network/HTTPRequest.py @@ -21,6 +21,7 @@ import pycurl from codecs import getincrementaldecoder from urllib import quote, urlencode +from httplib import responses from logging import getLogger from cStringIO import StringIO @@ -31,7 +32,7 @@ def myquote(url): class BadHeader(Exception): def __init__(self, code, content=""): - Exception.__init__(self, "Bad server response: %s"% code) + Exception.__init__(self, "Bad server response: %s %s"% (code, responses[int(code)])) self.code = code self.content = content -- cgit v1.2.3