diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-08-31 16:37:33 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-08-31 16:37:33 +0200 |
commit | 09a3823597a4ff1b575453d16c55ff9969eadde3 (patch) | |
tree | abe73e3aedb1617e2db7b95938c44d704b13cd31 | |
parent | Fixed filename bug (diff) | |
download | pyload-09a3823597a4ff1b575453d16c55ff9969eadde3.tar.xz |
downtime patch
-rw-r--r-- | module/download_thread.py | 10 |
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" |