From 1425b29d4908bc47a46e618824a1f77765022406 Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 22 Feb 2018 11:11:04 -0500 Subject: [PATCH] [unrelated] fix librarything error handling --- core/librarything.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/librarything.py b/core/librarything.py index 9572e5f2..4ba80a38 100644 --- a/core/librarything.py +++ b/core/librarything.py @@ -169,10 +169,8 @@ class LibraryThing(object): r = requests.get(url, cookies=cookies) if r.status_code != httplib.OK: - raise LibraryThingException("Error accessing %s: %s" % (url, e)) - logger.info("Error accessing %s: %s", url, e) + raise LibraryThingException("Error accessing %s: status %s" % (url, r.status_code)) etree = html.fromstring(r.content) - #logger.info("r.content %s", r.content) cookies = r.cookies # retain the cookies # look for a page bar