handle DecompressionBombError

pull/47/head^2
AlUlkesh 2023-03-12 08:20:09 +01:00
parent 1eb628176f
commit ed8c24cf6e
1 changed files with 3 additions and 0 deletions

View File

@ -366,6 +366,9 @@ def cache_exif(fileinfos):
except UnidentifiedImageError as e:
allExif = False
logger.warning(f"UnidentifiedImageError: {e}")
except Image.DecompressionBombError as e:
allExif = False
logger.warning(f"DecompressionBombError: {e}: {fi_info[0]}")
except PermissionError as e:
allExif = False
logger.warning(f"PermissionError: {e}: {fi_info[0]}")