Remove unused serializer and update ignored error settings

The `BuyAsBusinessOrderSerializer` import was removed as it is no longer used. Additionally, new error types were added to the `ignore_errors` list in the base settings file to prevent unnecessary logging of expected exceptions.
This commit is contained in:
Egor Pavlovich Gorbunov 2025-05-07 18:18:23 +03:00
parent 974568cdee
commit 0ed8a8d48e
2 changed files with 5 additions and 1 deletions

View file

@ -73,7 +73,6 @@ from core.serializers import (
VendorSimpleSerializer, VendorSimpleSerializer,
WishlistDetailSerializer, WishlistDetailSerializer,
WishlistSimpleSerializer, WishlistSimpleSerializer,
BuyAsBusinessOrderSerializer,
) )
from core.utils import format_attributes from core.utils import format_attributes
from core.utils.messages import permission_denied_message from core.utils.messages import permission_denied_message

View file

@ -297,6 +297,11 @@ if getenv("SENTRY_DSN"):
ignore_errors=[ ignore_errors=[
"flower.views.error.NotFoundErrorHandler.get", "flower.views.error.NotFoundErrorHandler.get",
"django.http.response.Http404", "django.http.response.Http404",
"billiard.exceptions.SoftTimeLimitExceeded",
"core.models.Product.DoesNotExist",
"core.models.Category.DoesNotExist",
"core.models.Brand.DoesNotExist",
"blog.models.Post.DoesNotExist",
], ],
) )