1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: YOKOTA Hiroshi <yokota.hgml@gmail.com>
Date: Fri, 7 Feb 2025 20:23:12 +0900
Subject: Revert "Automated conversion of % format specifiers"
Forwarded: not-needed
This reverts commit 5c7dc9613b683b9dea37cb1f6b482405fe3d22c8.
---
src/calibre/utils/podofo/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/calibre/utils/podofo/__init__.py b/src/calibre/utils/podofo/__init__.py
index 6387ee8..33de681 100644
--- a/src/calibre/utils/podofo/__init__.py
+++ b/src/calibre/utils/podofo/__init__.py
@@ -37,7 +37,7 @@ def set_metadata(stream, mi):
mi.title, mi.authors, mi.book_producer, mi.tags, xmp_packet))
touched = result['result']
except WorkerError as e:
- raise Exception(f'Failed to set PDF metadata in ({mi.title}): {e.orig_tb}')
+ raise Exception('Failed to set PDF metadata in (%s): %s'%(mi.title, e.orig_tb))
if touched:
with open(os.path.join(tdir, 'output.pdf'), 'rb') as f:
f.seek(0, 2)
|