diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-09-17 22:18:14 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-09-17 22:18:14 +0200 |
commit | 3db4587313b859f0540a8f077b27f2590881113a (patch) | |
tree | 5b355a1f8380d0fa88e14a891ee6a88c356db843 /module/network/HTTPRequest.py | |
parent | little bugfix at deletePackage dialog (diff) | |
download | pyload-3db4587313b859f0540a8f077b27f2590881113a.tar.xz |
little fix in debug reports
Diffstat (limited to 'module/network/HTTPRequest.py')
-rw-r--r-- | module/network/HTTPRequest.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |