Catch FileNotFoundError from run_pnginfo, #128

pull/150/head
AlUlkesh 2023-04-09 20:37:46 +02:00
parent 07811396c9
commit 9e72ee78f4
1 changed files with 3 additions and 0 deletions

View File

@ -410,6 +410,9 @@ def cache_exif(fileinfos):
except PermissionError as e:
allExif = False
logger.warning(f"PermissionError: {e}: {fi_info[0]}")
except FileNotFoundError as e:
allExif = False
logger.warning(f"FileNotFoundError: {e}: {fi_info[0]}")
except OSError as e:
if e.errno == 22:
logger.warning(f"Caught OSError with error code 22: {fi_info[0]}")