Commits

Andrew Stormont  committed feb4ae6 Draft

2192 userland-fetch can't handle FTP link.
Reviewed by: Jon Tibble <meths@btinternet.com>
Reviewed by: Adam Števko <adam.stevko@gmail.com>
Reviewed by: Igor Kozhukhov <igor.kozhukhov@nexenta.com>
Approved by: Andrew Stormont <andrew.stormont@nexenta.com>

  • Participants
  • Parent commits 5754087

Comments (0)

Files changed (1)

File tools/userland-fetch

 		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