Merge pull request #1 from radarhere/unpack

Fixed lint error
This commit is contained in:
paddywwoof 2019-08-04 16:49:39 +01:00 committed by GitHub
commit a780a51f9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -775,7 +775,9 @@ class ImageFileDirectory_v2(MutableMapping):
fp.seek(offset) fp.seek(offset)
except OverflowError as e: except OverflowError as e:
if DEBUG: if DEBUG:
print("- offset value wrong. Possibly corrupt EXIF data. ", e) print(
"- offset value wrong. Possibly corrupt EXIF data. ", e
)
continue # ignore corrupt EXIF data continue # ignore corrupt EXIF data
data = ImageFile._safe_read(fp, size) data = ImageFile._safe_read(fp, size)
fp.seek(here) fp.seek(here)