Reduce long line.

master
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
1 changed files with 5 additions and 1 deletions

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