Commits

Anonymous committed a6a63ad

Fix 404 fetcher error wording so that it works correctly when
pycurl isn't available and urllib is in use.

  • Participants
  • Parent commits de980d5

Comments (0)

Files changed (1)

             except urllib.addinfourl, remote:
                 if remote.errcode == 304: # Not modified
                     item.setSucceeded(localpath)
+                elif remote.errcode == 404:
+                    # Use a standard translatable error message.
+                    item.setFailed(_("File not found"))
                 else:
                     item.setFailed(remote.errmsg)