From 9517feccd9a0f998342e4527c24b4100907b1bb8 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Thu, 6 Jul 2023 09:00:00 -0400 Subject: [PATCH] Update src/PIL/Image.py Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com> --- src/PIL/Image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 6501c2355..4b088bdfd 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -662,7 +662,7 @@ class Image: :returns: JPEG version of the image as bytes """ try: - self._repr_image("JPEG") + return self._repr_image("JPEG") except Exception: return None