summaryrefslogtreecommitdiffstats
path: root/module/network/FtpRequest.py
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2010-11-05 16:13:51 +0100
committerGravatar Jeix <devnull@localhost> 2010-11-05 16:13:51 +0100
commit77d436bb07eb4cf8ede5a9ec3c3bbdb4f2186602 (patch)
tree581071381ac07229c3abd19d2cc4d90c4f043b9e /module/network/FtpRequest.py
parentfiles.mail.ru improvement (diff)
downloadpyload-77d436bb07eb4cf8ede5a9ec3c3bbdb4f2186602.tar.xz
small fixes: progess view in gui,xdcc,shareonline
Diffstat (limited to 'module/network/FtpRequest.py')
-rw-r--r--module/network/FtpRequest.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/network/FtpRequest.py b/module/network/FtpRequest.py
index fb2e6246e..d8f556fea 100644
--- a/module/network/FtpRequest.py
+++ b/module/network/FtpRequest.py
@@ -27,8 +27,7 @@ from os.path import exists
from cStringIO import StringIO
import pycurl
-class AbortDownload(Exception):
- pass
+from module.plugins.Plugin import Abort
class FtpRequest:
def __init__(self, interface=None):
@@ -161,7 +160,7 @@ class FtpRequest:
self.fp.close()
if self.abort:
- raise AbortDownload
+ raise Abort
free_name = self.get_free_name(file_name)
rename(file_temp, free_name)