Self hosted FLOSS fitness/workout, nutrition and weight tracker
Don't continue if there are no results...
Roland Geiderf3c4aa6c0683
diff --git a/wger/nutrition/sync.py b/wger/nutrition/sync.pyindex 552c47fa6..3db1d9031 100644--- a/wger/nutrition/sync.py+++ b/wger/nutrition/sync.py@@ -106,6 +106,7 @@ def fetch_image_from_wger_instance(ingredient):result = requests.get(url, headers=wger_headers()).json()if result['count'] == 0:logger.info('No ingredient matches UUID in the remote server')+ returnimage_data = result['results'][0]image_uuid = image_data['uuid']