This commit is contained in:
Kovid Goyal 2011-03-10 20:42:45 -07:00
parent 3432e7010f
commit aea809b61b

View File

@ -137,6 +137,8 @@ class AmazonCovers(CoverDownload): # {{{
br = browser() br = browser()
try: try:
url = get_cover_url(mi.isbn, br) url = get_cover_url(mi.isbn, br)
if url is None:
raise ValueError('No cover found for ISBN: %s'%mi.isbn)
cover_data = br.open_novisit(url).read() cover_data = br.open_novisit(url).read()
result_queue.put((True, cover_data, 'jpg', self.name)) result_queue.put((True, cover_data, 'jpg', self.name))
except Exception, e: except Exception, e: