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]>
--- a/tools/userland-fetch Wed Mar 07 12:52:51 2012 +0000
+++ b/tools/userland-fetch Sun Mar 11 22:49:55 2012 +0000
@@ -103,7 +103,7 @@
return None
# 3xx, 4xx and 5xx (f|ht)tp codes designate unsuccessfull action
- if 3 <= int(src.getcode()/100) <= 5:
+ if src.getcode() and (3 <= int(src.getcode()/100) <= 5):
print "Error code: " + str(src.getcode())
return None