summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-31 16:37:33 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-31 16:37:33 +0200
commit09a3823597a4ff1b575453d16c55ff9969eadde3 (patch)
treeabe73e3aedb1617e2db7b95938c44d704b13cd31 /module
parentFixed filename bug (diff)
downloadpyload-09a3823597a4ff1b575453d16c55ff9969eadde3.tar.xz
downtime patch
Diffstat (limited to 'module')
-rw-r--r--module/download_thread.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/module/download_thread.py b/module/download_thread.py
index 36b308217..78111b8d2 100644
--- a/module/download_thread.py
+++ b/module/download_thread.py
@@ -76,6 +76,16 @@ class Download_Thread(threading.Thread):
except Reconnect:
pass
except Exception, e:
+
+ try:
+ code, msg = e
+ if code == 7:
+ sleep(60)
+ self.parent.parent.logger.info("Hoster unvailable, wait 60 seconds")
+ except Exception, f:
+ self.parent.parent.logger.debug("Error getting error code: "+ str(f))
+
+
if self.parent.parent.config['general']['debug_mode']:
traceback.print_exc()
self.loadedPyFile.status.type = "failed"