mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-03-06 00:43:42 -05:00
Show more informative error when failing to get cover.
This commit is contained in:
parent
bfdef76edd
commit
546a402df5
@ -222,8 +222,8 @@ class MetadataSingleDialog(QDialog, Ui_MetadataSingleDialog):
|
||||
self.cover.setPixmap(pix)
|
||||
self.cover_changed = True
|
||||
self.cpixmap = pix
|
||||
except Exception:
|
||||
error_dialog(self, 'Could not fetch cover', 'Could not fetch cover.').exec_()
|
||||
except Exception, err:
|
||||
error_dialog(self, 'Could not fetch cover', '<b>Could not fetch cover.</b><br/>'+str(err)).exec_()
|
||||
finally:
|
||||
self.fetch_cover_button.setEnabled(True)
|
||||
self.unsetCursor()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user