From f559ab5186fb7bc122e39b1ceea96e25e78a5318 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 18 Nov 2010 22:09:14 +0100 Subject: little fixes --- module/PluginThread.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'module/PluginThread.py') diff --git a/module/PluginThread.py b/module/PluginThread.py index 20cb10a5b..6950ec8d7 100644 --- a/module/PluginThread.py +++ b/module/PluginThread.py @@ -213,8 +213,11 @@ class DownloadThread(PluginThread): continue except error, e: - code, msg = e - + try: + code, msg = e.args + except: + code = 0 + msg = e.args if code in (7, 18, 28, 52, 56): self.m.log.warning(_("Couldn't connect to host or connection resetted waiting 1 minute and retry.")) -- cgit v1.2.3