summaryrefslogtreecommitdiffstats
path: root/module/PluginThread.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r--module/PluginThread.py6
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: