summaryrefslogtreecommitdiffstats
path: root/module/network/FTPBase.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/network/FTPBase.py')
-rw-r--r--module/network/FTPBase.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/network/FTPBase.py b/module/network/FTPBase.py
index da67573a3..036da383a 100644
--- a/module/network/FTPBase.py
+++ b/module/network/FTPBase.py
@@ -63,6 +63,9 @@ class FTPBase(FTP):
self.welcome = self.getresp()
return self.welcome
+class WrappedFTPDeferred(WrappedDeferred):
+ pass
+
class FTPDownload():
def __init__(self, url, filename, interface=None, bucket=None, proxies={}):
self.url = url
@@ -162,7 +165,7 @@ class FTPDownload():
self.size = self.ftp.size(self.url.split("/")[-1])
self._download(offset)
- return self.deferred
+ return WrappedFTPDeferred(self, self.deferred)
if __name__ == "__main__":
import sys