Show title of failed book when kepubify fails

This commit is contained in:
Kovid Goyal 2025-03-23 20:32:24 +05:30
parent 061b8a1fb0
commit 0158d67462
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2358,6 +2358,8 @@ class KOBOTOUCH(KOBO):
kepubify_path(path, outpath=path, opts=opts, allow_overwrite=True)
except DRMError:
debug_print(f'Not converting {mi.title} ({name}) to KEPUB as it is DRMed')
except Exception as e:
raise ValueError(_('Could not kepubify the book {title} ({name}) failed with error: {e}').format(title=mi.title, name=name, e=e)) from e
else:
debug_print(f'Conversion of {mi.title} ({name}) to KEPUB succeeded')
self.files_to_rename_to_kepub.add(mi.uuid)