Skip to content
This repository was archived by the owner on Jul 9, 2019. It is now read-only.

Commit d7c544e

Browse files
author
Andrew Stormont
committed
2192 userland-fetch can't handle FTP link.
Reviewed by: Jon Tibble <[email protected]> Reviewed by: Adam Števko <[email protected]> Reviewed by: Igor Kozhukhov <[email protected]> Approved by: Andrew Stormont <[email protected]>
1 parent c2bf8dc commit d7c544e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/userland-fetch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def download(url, filename = None):
103103
return None
104104

105105
# 3xx, 4xx and 5xx (f|ht)tp codes designate unsuccessfull action
106-
if 3 <= int(src.getcode()/100) <= 5:
106+
if src.getcode() and (3 <= int(src.getcode()/100) <= 5):
107107
print "Error code: " + str(src.getcode())
108108
return None
109109

0 commit comments

Comments
 (0)