Reverted SyntaxError change to match other plugins

This commit is contained in:
Andrew Murray 2022-03-04 11:01:37 +11:00
parent 9c2cbcf452
commit e2e87d73c3

View File

@ -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",