From da3f307f2b70db5413237b9c6b36d72750896af8 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Wed, 2 Jul 2025 00:52:12 +0300 Subject: [PATCH] Fixes: 1) Remove outdated and unnecessary error ignores from Sentry configuration; Extra: Simplify error handling by cleaning up unreferenced exception ignore list entries; --- evibes/settings/base.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/evibes/settings/base.py b/evibes/settings/base.py index d03f904c..38092b18 100644 --- a/evibes/settings/base.py +++ b/evibes/settings/base.py @@ -282,21 +282,6 @@ if getenv("SENTRY_DSN"): from sentry_sdk.integrations.redis import RedisIntegration ignore_errors: list[str] = [ - "django.http.response.Http404", - "django.core.exceptions.PermissionDenied", - "django.core.exceptions.BadRequest", - "django.db.utils.OperationalError", - "billiard.exceptions.SoftTimeLimitExceeded", # This is a handled exception - "billiard.exceptions.WorkerLostError", # This is a handled exception - "core.models.Attribute.DoesNotExist", - "core.models.AttributeGroup.DoesNotExist", - "core.models.AttributeValue.DoesNotExist", - "core.models.Product.DoesNotExist", - "core.models.Category.DoesNotExist", - "core.models.Brand.DoesNotExist", - "core.models.Stock.DoesNotExist", - "core.models.ProductImage.DoesNotExist", - "blog.models.Post.DoesNotExist", ] sentry_sdk.init(