summaryrefslogtreecommitdiffstats
path: root/module/download_thread.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/download_thread.py')
-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"