summaryrefslogtreecommitdiffstats
path: root/pyload/threads
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-19 18:11:03 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-19 18:11:03 +0100
commit073a0aab0e21e75f2e4e797b1e0773c7acc32f12 (patch)
tree9be237614b5a489f050667d0f7b676846e0b66a9 /pyload/threads
parentworkaround for bug that causes webUI not to load (diff)
downloadpyload-073a0aab0e21e75f2e4e797b1e0773c7acc32f12.tar.xz
removed old request classes
Diffstat (limited to 'pyload/threads')
-rw-r--r--pyload/threads/DownloadThread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/threads/DownloadThread.py b/pyload/threads/DownloadThread.py
index b5a45185f..4c4ee597c 100644
--- a/pyload/threads/DownloadThread.py
+++ b/pyload/threads/DownloadThread.py
@@ -26,7 +26,7 @@ from pycurl import error
from pyload.plugins.Base import Fail, Retry, Abort
from pyload.plugins.Hoster import Reconnect, SkipDownload
-from pyload.network.HTTPRequest import BadHeader
+from pyload.plugins.Request import ResponseException
from BaseThread import BaseThread
@@ -182,7 +182,7 @@ class DownloadThread(BaseThread):
except Exception, e:
- if isinstance(e, BadHeader) and e.code == 500:
+ if isinstance(e, ResponseException) and e.code == 500:
pyfile.setStatus("temp. offline")
self.log.warning(_("Download is temporary offline: %s") % pyfile.name)
pyfile.error = _("Internal Server Error")