diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-23 12:22:15 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-23 12:22:15 +0100 |
commit | 023cd7cb92a79e84c038869bdafee3f2ee003159 (patch) | |
tree | 24b13bc08c01ead22188813213eceaee97d7d227 /module/PluginThread.py | |
parent | fixed eta and progress, ready for first test (diff) | |
download | pyload-023cd7cb92a79e84c038869bdafee3f2ee003159.tar.xz |
fixed setting download size
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r-- | module/PluginThread.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py index d997fcde5..f008475c5 100644 --- a/module/PluginThread.py +++ b/module/PluginThread.py @@ -29,11 +29,12 @@ from sys import exc_info, exc_clear from types import MethodType from os.path import join, exists +from urllib2 import URLError + from module.plugins.Plugin import Abort from module.plugins.Plugin import Fail from module.plugins.Plugin import Reconnect from module.plugins.Plugin import Retry -from pycurl import error from module.FileDatabase import PyFile ######################################################################## @@ -212,7 +213,8 @@ class DownloadThread(PluginThread): self.clean(pyfile) continue - except error, e: + except URLError, e: + #@TODO determine correct error codes try: code, msg = e.args except: |