diff options
Diffstat (limited to 'module/network/HTTPDownload.py')
-rw-r--r-- | module/network/HTTPDownload.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/module/network/HTTPDownload.py b/module/network/HTTPDownload.py index 40e2e69e1..603fea7a8 100644 --- a/module/network/HTTPDownload.py +++ b/module/network/HTTPDownload.py @@ -124,6 +124,14 @@ class HTTPDownload(): try: self._download(chunks, resume) + except pycurl.error, e: + #code 33 - no resume + code = e.args[0] + if code == 33: + # try again without resume + return self._download(chunks, False) + else: + raise e finally: self.close() |