Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Raise KeyError to make debugging celery errors easier

Roland Geider205a8d31f154
diff --git a/wger/nutrition/tasks.py b/wger/nutrition/tasks.py
index a71d2a5af..88a57cbab 100644
--- a/wger/nutrition/tasks.py
+++ b/wger/nutrition/tasks.py
@@ -98,7 +98,7 @@ def fetch_ingredient_image_function(pk: int):
return
# Save to DB
- image_data: dict = {
+ image_data = {
'image': os.path.basename(image_url),
'license_author': uploader_name,
'size': len(response.content)