mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -1050,7 +1050,10 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
||||
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…
x
Reference in New Issue
Block a user