ruff: process remaining existing checks and suppress the annoying ones
This commit is contained in:
parent
1c5efc46aa
commit
d58453410c
6 changed files with 38 additions and 8 deletions
|
@ -65,7 +65,7 @@ def _make_photo_aux(*args, **kwargs) -> List[Result]:
|
|||
|
||||
def _make_photo(photo: Path, mtype: str, *, parent_geo: Optional[LatLon]) -> Iterator[Result]:
|
||||
exif: Exif
|
||||
if any(x in mtype for x in {'image/png', 'image/x-ms-bmp', 'video'}):
|
||||
if any(x in mtype for x in ['image/png', 'image/x-ms-bmp', 'video']):
|
||||
# TODO don't remember why..
|
||||
logger.debug(f"skipping exif extraction for {photo} due to mime {mtype}")
|
||||
exif = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue