From e2e87d73c39612781be059072a2a08c30f743459 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 4 Mar 2022 11:01:37 +1100 Subject: [PATCH] Reverted SyntaxError change to match other plugins --- src/PIL/PpmImagePlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/PpmImagePlugin.py b/src/PIL/PpmImagePlugin.py index 725ddec10..9ed34a0cd 100644 --- a/src/PIL/PpmImagePlugin.py +++ b/src/PIL/PpmImagePlugin.py @@ -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",