Permalink
Browse files

Also catch HTTPErrors when opening url.

  • Loading branch information...
1 parent 36d06b7 commit 12b1ab760c00d71e68c4c247676d0a98cd0409c6 @benkonrath benkonrath committed Sep 23, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 micawber/providers.py
View
@@ -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 12b1ab7

Please sign in to comment.