mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 22:23:38 +02:00
Show more informative error when failing to get cover.
This commit is contained in:
parent
bfdef76edd
commit
546a402df5
1 changed files with 2 additions and 2 deletions
|
|
@ -222,8 +222,8 @@ def fetch_cover(self):
|
|||
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…
Reference in a new issue