Permalink
Browse files

Merge pull request #8 from onepercentclub/catch-http-errors

Also catch HTTPErrors when opening url.
  • Loading branch information...
2 parents 36d06b7 + 12b1ab7 commit a3e4d4920c338b048e8d3175d1c5181fcd043a22 @coleifer coleifer committed Sep 24, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 micawber/providers.py
@@ -29,6 +29,8 @@ def fetch(self, url):
resp = urllib2.urlopen(req)
except urllib2.URLError:
return False
+ except urllib2.HTTPError:
+ return False
except socket.timeout:
return False

0 comments on commit a3e4d49

Please sign in to comment.