This commit is contained in:
Kovid Goyal 2020-10-02 07:15:46 +05:30
parent be18bbfb04
commit b94819be9e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -286,14 +286,14 @@ class ViewAction(InterfaceAction):
views = []
for id_ in ids:
try:
formats = db.formats(id_, index_is_id=True)
title = db.title(id_, index_is_id=True)
except:
error_dialog(self.gui, _('Cannot view'),
_('This book no longer exists in your library'), show=True)
self.update_history([], remove={id_})
continue
title = db.title(id_, index_is_id=True)
formats = db.formats(id_, index_is_id=True)
if not formats:
error_dialog(self.gui, _('Cannot view'),
_('%s has no available formats.')%(title,), show=True)