Self hosted FLOSS fitness/workout, nutrition and weight tracker
Workaround for wger-project/docker/issues/105
Roland Geider35b0a0fc24aa
diff --git a/wger/exercises/api/views.py b/wger/exercises/api/views.pyindex b139429ab..d6387bb2b 100644--- a/wger/exercises/api/views.py+++ b/wger/exercises/api/views.py@@ -376,8 +376,10 @@ def search(request):thumbnail = Nonetry: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,