From 6a0654b7cb1e31541e68dcaac1271c136674b888 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 17 Oct 2012 03:20:04 +0200 Subject: [PATCH] Use the proper exception name --- crawler/calibre.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawler/calibre.py b/crawler/calibre.py index 35897ed..5c5d8bf 100644 --- a/crawler/calibre.py +++ b/crawler/calibre.py @@ -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