summaryrefslogtreecommitdiffstats
path: root/pyload/threads/DownloadThread.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/threads/DownloadThread.py')
-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")