mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Show traceback when reading metadata from format fails
This commit is contained in:
parent
e9a35b1958
commit
b0f30ce66a
@ -867,8 +867,10 @@ class FormatsManager(QWidget):
|
|||||||
mi = get_metadata(stream, ext)
|
mi = get_metadata(stream, ext)
|
||||||
return mi, ext
|
return mi, ext
|
||||||
except:
|
except:
|
||||||
|
import traceback
|
||||||
error_dialog(self, _('Could not read metadata'),
|
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
|
return None, None
|
||||||
finally:
|
finally:
|
||||||
if old != prefs['read_file_metadata']:
|
if old != prefs['read_file_metadata']:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user