Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sveneberth committed Jan 25, 2025
1 parent e90195d commit 7539eea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/viur/core/modules/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -1312,8 +1312,8 @@ def set_image_meta(self, key: db.Key) -> None:
file_obj.seek(0)
try:
img = Image.open(file_obj)
except Image.UnidentifiedImageError: # Can't load this image
logging.error(f'Cannot open {skel["key"]} | {skel["name"]} to set image meta data', exc_info=True)
except Image.UnidentifiedImageError as e: # Can't load this image
logging.exception(f'Cannot open {skel["key"]} | {skel["name"]} to set image meta data: {e}')
return

skel.patch(
Expand Down

0 comments on commit 7539eea

Please sign in to comment.