From 60ab6a5244dd7f940e937fa998b655eaa285eb44 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 9 Mar 2015 16:43:33 +0530 Subject: [PATCH] ignore amazon utf-8 errors --- oml/meta/lookupbyisbn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oml/meta/lookupbyisbn.py b/oml/meta/lookupbyisbn.py index 0b9abdc..2eb5365 100644 --- a/oml/meta/lookupbyisbn.py +++ b/oml/meta/lookupbyisbn.py @@ -89,5 +89,5 @@ def lookup(id): return r def amazon_lookup(asin): - html = read_url('http://www.amazon.com/dp/%s' % asin).decode('utf-8') + html = read_url('http://www.amazon.com/dp/%s' % asin).decode('utf-8', 'ignore') return list(set(find_isbns(find_re(html, 'Formats.*?