[entropy.fetchers] when loading URLs with urllib, catch ValueError exceptions too

This commit is contained in:
Fabio Erculiani
2010-01-06 01:21:10 +01:00
parent 01a0b22dd1
commit b5ec1f0276

View File

@@ -195,6 +195,11 @@ class UrlFetcher:
self.__status = "-3"
return self.__status
except ValueError: # malformed, unsupported URL? raised by urllib
self.__close(True)
self.__status = "-3"
return self.__status
except:
print_traceback()
raise