diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-05-27 22:52:24 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-05-27 22:52:24 +0200 |
commit | 3254a85595dd27a96862d8d7b932c03ade166f95 (patch) | |
tree | 969bd75d09550da32792c2537e8d6e9f0101386e /module/network | |
parent | fixes last commit (diff) | |
download | pyload-3254a85595dd27a96862d8d7b932c03ade166f95.tar.xz |
change password in webif
Diffstat (limited to 'module/network')
-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() |