File: 0019-Revert-Automated-conversion-of-format-specifiers.patch

package info (click to toggle)
calibre 8.5.0%2Bds-1%2Bdeb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie-proposed-updates
  • size: 431,848 kB
  • sloc: python: 450,752; ansic: 87,218; javascript: 57,667; cpp: 18,719; xml: 1,244; sh: 935; sql: 735; objc: 330; makefile: 68; sed: 3
file content (24 lines) | stat: -rw-r--r-- 1,035 bytes parent folder | download | duplicates (2)
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)