Use the proper exception name

develop
Sven Slootweg 12 years ago
parent 0a2d4fcb9f
commit 6a0654b7cb

@ -100,7 +100,7 @@ class CalibreCrawler(threading.Thread):
try:
response = urllib2.urlopen(url + "browse/category/allbooks")
except URLError:
except urllib2.URLError:
print "Skipping %s, as the server could not be successfully reached." % url
return None

Loading…
Cancel
Save