mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
3432e7010f
commit
aea809b61b
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user