mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2709 (Unhandled Exception when adding meta data & covers)
This commit is contained in:
parent
caab42221b
commit
6cf45cecbe
@ -934,9 +934,9 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
|
|||||||
details = ['%s: %s'%(title, reason) for title,
|
details = ['%s: %s'%(title, reason) for title,
|
||||||
reason in x.failures.values()]
|
reason in x.failures.values()]
|
||||||
details = '%s\n'%('\n'.join(details))
|
details = '%s\n'%('\n'.join(details))
|
||||||
warning_dialog(_('Failed to download some metadata'),
|
warning_dialog(self, _('Failed to download some metadata'),
|
||||||
_('Failed to download metadata for the following:'),
|
_('Failed to download metadata for the following:'),
|
||||||
details, self).exec_()
|
det_msg=details).exec_()
|
||||||
else:
|
else:
|
||||||
err = _('Failed to download metadata:')
|
err = _('Failed to download metadata:')
|
||||||
error_dialog(self, _('Error'), err, det_msg=x.tb).exec_()
|
error_dialog(self, _('Error'), err, det_msg=x.tb).exec_()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user