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:
parent
974568cdee
commit
0ed8a8d48e
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue