mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 09:45:31 +01:00
Don't popup an error message when adding books if the cover is not a valid image
This commit is contained in:
parent
1843490897
commit
56fc01dbac
1 changed files with 4 additions and 1 deletions
|
|
@ -1050,7 +1050,10 @@ def create_book_entry(self, mi, cover=None, add_duplicates=True):
|
|||
mi.pubdate = utcnow()
|
||||
self.set_metadata(id, mi)
|
||||
if cover is not None:
|
||||
self.set_cover(id, cover)
|
||||
try:
|
||||
self.set_cover(id, cover)
|
||||
except:
|
||||
traceback.print_exc()
|
||||
return id
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue