catch a PermissionError, #69

pull/75/head
AlUlkesh 2023-03-07 21:40:17 +01:00
parent e508543da1
commit 2a64cd1954
1 changed files with 3 additions and 0 deletions

View File

@ -374,6 +374,9 @@ def cache_exif(fileinfos):
except SyntaxError:
allExif = False
logger.warning(f"Extension and content don't match: {fi_info[0]}")
except PermissionError as e:
allExif = False
logger.warning(f"PermissionError: {e}: {fi_info[0]}")
if allExif:
finfo_exif[fi_info[0]] = allExif
exif_cache[fi_info[0]] = allExif