Slightly improved conn refused handling.

This commit is contained in:
Jim Miller 2014-04-22 13:01:33 -05:00
parent b833041dc4
commit 362f15f9fa

View file

@ -188,9 +188,9 @@ class BaseSiteAdapter(Configurable):
try:
return self._decode(self._fetchUrlRaw(url,parameters))
except u2.HTTPError, he:
excpt=he
if he.code == 404:
logger.warn("Caught an exception reading URL: %s Exception %s."%(unicode(url),unicode(he)))
excpt=he
break # break out on 404
except Exception, e:
excpt=e