diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-11-18 22:09:14 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-11-18 22:09:14 +0100 |
commit | f559ab5186fb7bc122e39b1ceea96e25e78a5318 (patch) | |
tree | 5554e39535d8e1f432e1a5abc9f17c7190ff047f /module/PluginThread.py | |
parent | closed #153 (diff) | |
download | pyload-f559ab5186fb7bc122e39b1ceea96e25e78a5318.tar.xz |
little fixes
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.")) |