summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/Ftp.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/Ftp.py')
-rw-r--r--module/plugins/hoster/Ftp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/hoster/Ftp.py b/module/plugins/hoster/Ftp.py
index 2fa5c1aa8..2ff1755f4 100644
--- a/module/plugins/hoster/Ftp.py
+++ b/module/plugins/hoster/Ftp.py
@@ -71,7 +71,7 @@ class Ftp(Hoster):
self.log_debug(self.req.http.header)
m = re.search(r"Content-Length:\s*(\d+)", res)
- if m:
+ if m is not None:
pyfile.size = int(m.group(1))
self.download(pyfile.url)