From 0158d674624b72465758a7eb2b0ef20ae9a44e28 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 23 Mar 2025 20:32:24 +0530 Subject: [PATCH] Show title of failed book when kepubify fails --- src/calibre/devices/kobo/driver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index 74f14754ab..e675b94b6c 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -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)