summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-27 22:52:24 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-27 22:52:24 +0200
commit3254a85595dd27a96862d8d7b932c03ade166f95 (patch)
tree969bd75d09550da32792c2537e8d6e9f0101386e /module/network
parentfixes last commit (diff)
downloadpyload-3254a85595dd27a96862d8d7b932c03ade166f95.tar.xz
change password in webif
Diffstat (limited to 'module/network')
-rw-r--r--module/network/HTTPDownload.py8
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()