From 073a0aab0e21e75f2e4e797b1e0773c7acc32f12 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 19 Nov 2013 18:11:03 +0100 Subject: removed old request classes --- pyload/threads/DownloadThread.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyload/threads') 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") -- cgit v1.2.3