mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 01:34:24 +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:
|
try:
|
||||||
mode = MODES[magic_number]
|
mode = MODES[magic_number]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise SyntaxError("Not a PPM image file") from None
|
raise SyntaxError("not a PPM file")
|
||||||
|
|
||||||
self.custom_mimetype = {
|
self.custom_mimetype = {
|
||||||
b"P4": "image/x-portable-bitmap",
|
b"P4": "image/x-portable-bitmap",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user