From 2243437714e8fa2f2054e13b626057b86bd7562a Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 14 Jun 2011 17:19:39 +0200 Subject: ssl fix --- module/PluginThread.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'module/PluginThread.py') 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") -- cgit v1.2.3