diff options
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r-- | module/PluginThread.py | 7 |
1 files changed, 5 insertions, 2 deletions
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.")) |