diff --git a/wger/exercises/api/views.py b/wger/exercises/api/views.py index b139429ab..d6387bb2b 100644 --- a/wger/exercises/api/views.py +++ b/wger/exercises/api/views.py @@ -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,