Skip to content

Commit

Permalink
Update src/PIL/Image.py
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
  • Loading branch information
mtreinish and radarhere authored Jul 6, 2023
1 parent 6d440ac commit 9517fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ def _repr_jpeg_(self):
:returns: JPEG version of the image as bytes
"""
try:
self._repr_image("JPEG")
return self._repr_image("JPEG")
except Exception:
return None

Expand Down

0 comments on commit 9517fec

Please sign in to comment.