mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 20:24:49 +02:00
Show traceback when reading metadata from format fails
This commit is contained in:
parent
e9a35b1958
commit
b0f30ce66a
1 changed files with 3 additions and 1 deletions
|
|
@ -867,8 +867,10 @@ def get_selected_format_metadata(self, db, id_):
|
|||
mi = get_metadata(stream, ext)
|
||||
return mi, ext
|
||||
except:
|
||||
import traceback
|
||||
error_dialog(self, _('Could not read metadata'),
|
||||
_('Could not read metadata from %s format')%ext).exec_()
|
||||
_('Could not read metadata from %s format')%ext.upper(),
|
||||
det_msg=traceback.format_exc(), show=True)
|
||||
return None, None
|
||||
finally:
|
||||
if old != prefs['read_file_metadata']:
|
||||
|
|
|
|||
Loading…
Reference in a new issue