summaryrefslogtreecommitdiffstats
path: root/module/PluginThread.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-14 17:19:39 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-14 17:19:39 +0200
commit2243437714e8fa2f2054e13b626057b86bd7562a (patch)
treef8fe7459ca552d16caacc33b4fc6e12e47fc70bc /module/PluginThread.py
parentforget sleep (diff)
downloadpyload-2243437714e8fa2f2054e13b626057b86bd7562a.tar.xz
ssl fix
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r--module/PluginThread.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py
index 84ddc6115..1fe1363bc 100644
--- a/module/PluginThread.py
+++ b/module/PluginThread.py
@@ -181,17 +181,16 @@ class DownloadThread(PluginThread):
continue
- except Retry:
+ except Retry, e:
- #todo: ouput
-
- self.m.log.info(_("Download restarted: %s") % pyfile.name)
+ reason = e.args[0]
+ self.m.log.info(_("Download restarted: %(name)s | %(msg)s") % {"name" : pyfile.name, "msg": reason})
self.queue.put(pyfile)
continue
except Fail, e:
- msg = e.message
+ msg = e.args[0]
if msg == "offline":
pyfile.setStatus("offline")