Skip to content

Commit

Permalink
MAINT: Fix formatting of warning message and include exception message (
Browse files Browse the repository at this point in the history
#3076)

Relates to #3032.
stefan6419846 authored Jan 24, 2025
1 parent 1401bcf commit afd7004
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypdf/_page.py
Original file line number Diff line number Diff line change
@@ -2148,9 +2148,9 @@ def process_operation(operator: bytes, operands: List[Any]) -> None:
cmap[3],
font_size,
)
except Exception:
except Exception as exception:
logger_warning(
f" impossible to decode XFormObject {operands[0]}",
f"Impossible to decode XFormObject {operands[0]}: {exception}",
__name__,
)
finally:

0 comments on commit afd7004

Please sign in to comment.