diff --git a/Tests/test_file_jpeg.py b/Tests/test_file_jpeg.py index 7a48a460c..dd83e1c06 100644 --- a/Tests/test_file_jpeg.py +++ b/Tests/test_file_jpeg.py @@ -636,7 +636,7 @@ class TestFileJpeg(PillowTestCase): def test_bad_exif_overflow_32(self): # This image has some corrupt exif offsets that unpack to values greater # than ssize_t on 32 bit systems - im = Image.open('Tests/images/corrupt_exif.jpg') + im = Image.open("Tests/images/corrupt_exif.jpg") def test_photoshop(self): im = Image.open("Tests/images/photoshop-200dpi.jpg") diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py index 37b75886e..a07ebbff1 100644 --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -775,9 +775,7 @@ class ImageFileDirectory_v2(MutableMapping): fp.seek(offset) except OverflowError as e: if DEBUG: - print( - "Offset too large. Possibly corrupt EXIF data. ", e - ) + print("Offset too large. Possibly corrupt EXIF data.", e) continue # ignore corrupt EXIF data data = ImageFile._safe_read(fp, size) fp.seek(here)