Skip to content

Conversation

@radarhere
Copy link
Member

Resolves #8956

msg = f"Token too long in file header: {token.decode()}"
raise ValueError(msg)

The issue found a token value that could not be decoded, so this PR changes the error message to use bytes instead.

@hugovk hugovk merged commit 36cea19 into python-pillow:main Jun 10, 2025
55 checks passed
@radarhere radarhere deleted the ppm branch June 10, 2025 11:30
@radarhere radarhere mentioned this pull request Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unanticipated UnicodeDecodeError raised during call to PIL.Image.open

2 participants