Skip to content

Commit afd7004

Browse files
MAINT: Fix formatting of warning message and include exception message (#3076)
Relates to #3032.
1 parent 1401bcf commit afd7004

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pypdf/_page.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,9 +2148,9 @@ def process_operation(operator: bytes, operands: List[Any]) -> None:
21482148
cmap[3],
21492149
font_size,
21502150
)
2151-
except Exception:
2151+
except Exception as exception:
21522152
logger_warning(
2153-
f" impossible to decode XFormObject {operands[0]}",
2153+
f"Impossible to decode XFormObject {operands[0]}: {exception}",
21542154
__name__,
21552155
)
21562156
finally:

0 commit comments

Comments
 (0)