mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove pointless traceback when fail to set cover in epub
This commit is contained in:
parent
7ce2081c48
commit
e497d0d1c4
@ -196,8 +196,7 @@ def set_metadata(stream, mi, apply_null=False, update_timestamp=False):
|
|||||||
try:
|
try:
|
||||||
new_cdata = open(mi.cover, 'rb').read()
|
new_cdata = open(mi.cover, 'rb').read()
|
||||||
except:
|
except:
|
||||||
import traceback
|
pass
|
||||||
traceback.print_exc()
|
|
||||||
if new_cdata and raster_cover:
|
if new_cdata and raster_cover:
|
||||||
try:
|
try:
|
||||||
cpath = posixpath.join(posixpath.dirname(reader.opf_path),
|
cpath = posixpath.join(posixpath.dirname(reader.opf_path),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user