Commits

Anonymous committed a6a63ad

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

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)