Fix #2709 (Unhandled Exception when adding meta data & covers)

This commit is contained in:
Kovid Goyal 2009-06-25 11:44:21 -07:00
parent caab42221b
commit 6cf45cecbe

View File

@ -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_()