From ba9e5080bc3b7a363d80d0a2c4a74549d6dca33d Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Tue, 13 May 2025 05:55:49 +0300 Subject: [PATCH] Features: 1) Add error handlers for Attribute, AttributeGroup, and AttributeValue DoesNotExist exceptions; Fixes: 1) None; Extra: None; --- evibes/settings/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/evibes/settings/base.py b/evibes/settings/base.py index a96f2c30..74566bc9 100644 --- a/evibes/settings/base.py +++ b/evibes/settings/base.py @@ -298,6 +298,9 @@ if getenv("SENTRY_DSN"): "flower.views.error.NotFoundErrorHandler", "django.http.response.Http404", "billiard.exceptions.SoftTimeLimitExceeded", + "core.models.Attribute.DoesNotExist", + "core.models.AttributeGroup.DoesNotExist", + "core.models.AttributeValue.DoesNotExist", "core.models.Product.DoesNotExist", "core.models.Category.DoesNotExist", "core.models.Brand.DoesNotExist",