From 79e395f7bc1522c4901d02b3b9b106cd8236d10a Mon Sep 17 00:00:00 2001 From: Nitzo Date: Mon, 11 Jul 2016 22:23:21 +0300 Subject: [Hoster] fix #2538 --- module/plugins/internal/Hoster.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'module') diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py index bc758e98e..1730f5ae8 100644 --- a/module/plugins/internal/Hoster.py +++ b/module/plugins/internal/Hoster.py @@ -34,7 +34,7 @@ if not hasattr(__builtin__.property, "setter"): class Hoster(Base): __name__ = "Hoster" __type__ = "hoster" - __version__ = "0.57" + __version__ = "0.58" __status__ = "stable" __pattern__ = r'^unmatchable$' @@ -231,6 +231,11 @@ class Hoster(Base): newname = self.req.httpDownload(url, file, get, post, ref, cookies, chunks, resume, self.pyfile.setProgress, disposition) + + except IOError, e: + self.log_error(e.message) + self.fail("IOError %s" % e.errno) + except BadHeader, e: self.req.http.code = e.code raise -- cgit v1.2.3