Fixes: 1) Remove outdated and unnecessary error ignores from Sentry configuration;

Extra: Simplify error handling by cleaning up unreferenced exception ignore list entries;
This commit is contained in:
Egor Pavlovich Gorbunov 2025-07-02 00:52:12 +03:00
parent e8c767946b
commit da3f307f2b

View file

@ -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(