Reduce long line.

This commit is contained in:
voussoir 2022-11-11 15:23:34 -08:00
parent ea7f7d5843
commit c6873fdcab
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -87,7 +87,11 @@ def _get_exif_datetime_pil(image):
def _get_exif_datetime_exifread(path):
path = pathclass.Path(path)
exif = _exifread.process_file(path.open('rb'))
exif_date = exif.get('EXIF DateTimeOriginal') or exif.get('Image DateTime') or exif.get('EXIF DateTimeDigitized')
exif_date = (
exif.get('EXIF DateTimeOriginal') or
exif.get('Image DateTime') or
exif.get('EXIF DateTimeDigitized')
)
if not exif_date:
return None