From 77d436bb07eb4cf8ede5a9ec3c3bbdb4f2186602 Mon Sep 17 00:00:00 2001 From: Jeix Date: Fri, 5 Nov 2010 16:13:51 +0100 Subject: small fixes: progess view in gui,xdcc,shareonline --- module/network/FtpRequest.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'module/network/FtpRequest.py') 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) -- cgit v1.2.3