Do not decode bytes in PPM error message by radarhere · Pull Request #8958 · python-pillow/Pillow
Navigation Menu
{{ message }}
python-pillow / Pillow Public
- Notifications You must be signed in to change notification settings
- Fork 2.4k
Merged
Do not decode bytes in PPM error message#8958
hugovk merged 1 commit intopython-pillow:mainfrom
Do not decode bytes in PPM error message#8958
hugovk merged 1 commit intopython-pillow:mainfrom
Conversation
Copy link Copy Markdown
Member
radarhere
commented
May 15, 2025
radarhere
commented
Resolves #8956
Pillow/src/PIL/PpmImagePlugin.py
Lines 97 to 98 in 3c71559
| 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.
radarhere
mentioned this pull request
radarhere
force-pushed
the
ppm
branch
from
10160a5 to
518da5a
Compare
radarhere
force-pushed
the
ppm
branch
from
518da5a to
231a807
Compare
radarhere
deleted the
ppm
branch
radarhere
mentioned this pull request
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment