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
Relates to py-pdf#3032.
  • Loading branch information
stefan6419846 committed Jan 24, 2025
1 parent eec079d commit 4146936
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
Expand Up @@ -2147,9 +2147,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:
Expand Down

0 comments on commit 4146936

Please sign in to comment.