[unrelated] fix librarything error handling

pull/91/head
eric 2018-02-22 11:11:04 -05:00
parent fae854cd57
commit 1425b29d49
1 changed files with 1 additions and 3 deletions

View File

@ -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