mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +03:00
Reverted SyntaxError change to match other plugins
This commit is contained in:
parent
9c2cbcf452
commit
e2e87d73c3
|
@ -94,7 +94,7 @@ class PpmImageFile(ImageFile.ImageFile):
|
|||
try:
|
||||
mode = MODES[magic_number]
|
||||
except KeyError:
|
||||
raise SyntaxError("Not a PPM image file") from None
|
||||
raise SyntaxError("not a PPM file")
|
||||
|
||||
self.custom_mimetype = {
|
||||
b"P4": "image/x-portable-bitmap",
|
||||
|
|
Loading…
Reference in New Issue
Block a user