diff --git a/cookbook/integration/paprika.py b/cookbook/integration/paprika.py index 227ef4539..a42017fbe 100644 --- a/cookbook/integration/paprika.py +++ b/cookbook/integration/paprika.py @@ -94,7 +94,8 @@ class Paprika(Integration): url = recipe_json.get("image_url", None) if validate_import_url(url): response = requests.get(url) - self.import_recipe_image(recipe, BytesIO(response.content)) + if response.status_code == 200 and len(response.content) > 0: + self.import_recipe_image(recipe, BytesIO(response.content)) except Exception: pass diff --git a/requirements.txt b/requirements.txt index 382cd264b..2c04f679d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ django-annoying==0.10.6 django-cleanup==8.0.0 django-crispy-forms==2.3 crispy-bootstrap4==2024.10 -django-tables2==2.7.0 +django-tables2==2.7.4 djangorestframework==3.15.2 drf-writable-nested==0.7.0 drf-spectacular==0.27.1 @@ -21,7 +21,7 @@ python-dotenv==1.0.0 requests==2.32.3 six==1.16.0 webdavclient3==3.14.6 -whitenoise==6.7.0 +whitenoise==6.8.2 icalendar==6.1.0 pyyaml==6.0.2 uritemplate==4.1.1 @@ -43,10 +43,10 @@ django-hCaptcha==0.2.0 python-ldap==3.4.4 django-auth-ldap==4.6.0 pyppeteer==2.0.0 -pytubefix==8.5.1 +pytubefix==8.12.0 aiohttp==3.10.11 inflection==0.5.1 -redis==5.2.0 +redis==5.2.1 django-vite==3.0.3 google-generativeai==0.5.3