Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandgeider committed Oct 16, 2024
1 parent e151c7d commit 35b0a0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wger/exercises/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,10 @@ def search(request):
thumbnail = None
try:
thumbnail = t.get_thumbnail(aliases.get('micro_cropped')).url
except InvalidImageFormatError:
pass
except InvalidImageFormatError as e:
logger.info(f'InvalidImageFormatError while processing a thumbnail: {e}')
except OSError as e:
logger.info(f'OSError while processing a thumbnail: {e}')

result_json = {
'value': translation.name,
Expand Down

0 comments on commit 35b0a0f

Please sign in to comment.