diff --git a/backoffice-repo/backoffice/config/urls.py b/backoffice-repo/backoffice/config/urls.py index a35561e60..045b7976b 100644 --- a/backoffice-repo/backoffice/config/urls.py +++ b/backoffice-repo/backoffice/config/urls.py @@ -43,10 +43,6 @@ ] -def sentry_trigger_error(request): - division_by_zero = 1 / 0 # noqa - - if settings.DEBUG: # This allows the error pages to be debugged during development, just visit # these url in browser to see how these error pages look like. @@ -67,7 +63,6 @@ def sentry_trigger_error(request): kwargs={"exception": Exception("Page not Found")}, ), path("500/", default_views.server_error), - path("sentry-debug/", sentry_trigger_error), ] if "debug_toolbar" in settings.INSTALLED_APPS: diff --git a/backoffice-repo/backoffice/poetry.lock b/backoffice-repo/backoffice/poetry.lock index 421565517..17d35cb17 100644 --- a/backoffice-repo/backoffice/poetry.lock +++ b/backoffice-repo/backoffice/poetry.lock @@ -3215,13 +3215,13 @@ crt = ["botocore[crt] (>=1.20.29,<2.0a.0)"] [[package]] name = "sentry-sdk" -version = "1.31.0" +version = "1.19.1" description = "Python client for Sentry (https://sentry.io)" optional = false python-versions = "*" files = [ - {file = "sentry-sdk-1.31.0.tar.gz", hash = "sha256:6de2e88304873484207fed836388e422aeff000609b104c802749fd89d56ba5b"}, - {file = "sentry_sdk-1.31.0-py2.py3-none-any.whl", hash = "sha256:64a7141005fb775b9db298a30de93e3b83e0ddd1232dc6f36eb38aebc1553291"}, + {file = "sentry-sdk-1.19.1.tar.gz", hash = "sha256:7ae78bd921981a5010ab540d6bdf3b793659a4db8cccf7f16180702d48a80d84"}, + {file = "sentry_sdk-1.19.1-py2.py3-none-any.whl", hash = "sha256:885a11c69df23e53eb281d003b9ff15a5bdfa43d8a2a53589be52104a1b4582f"}, ] [package.dependencies] @@ -3231,22 +3231,18 @@ urllib3 = {version = ">=1.26.11", markers = "python_version >= \"3.6\""} [package.extras] aiohttp = ["aiohttp (>=3.5)"] arq = ["arq (>=0.23)"] -asyncpg = ["asyncpg (>=0.23)"] beam = ["apache-beam (>=2.12)"] bottle = ["bottle (>=0.12.13)"] celery = ["celery (>=3)"] chalice = ["chalice (>=1.16.0)"] -clickhouse-driver = ["clickhouse-driver (>=0.2.0)"] django = ["django (>=1.8)"] falcon = ["falcon (>=1.4)"] fastapi = ["fastapi (>=0.79.0)"] -flask = ["blinker (>=1.1)", "flask (>=0.11)", "markupsafe"] +flask = ["blinker (>=1.1)", "flask (>=0.11)"] grpcio = ["grpcio (>=1.21.1)"] httpx = ["httpx (>=0.16.0)"] huey = ["huey (>=2)"] -loguru = ["loguru (>=0.5)"] opentelemetry = ["opentelemetry-distro (>=0.35b0)"] -opentelemetry-experimental = ["opentelemetry-distro (>=0.40b0,<1.0)", "opentelemetry-instrumentation-aiohttp-client (>=0.40b0,<1.0)", "opentelemetry-instrumentation-django (>=0.40b0,<1.0)", "opentelemetry-instrumentation-fastapi (>=0.40b0,<1.0)", "opentelemetry-instrumentation-flask (>=0.40b0,<1.0)", "opentelemetry-instrumentation-requests (>=0.40b0,<1.0)", "opentelemetry-instrumentation-sqlite3 (>=0.40b0,<1.0)", "opentelemetry-instrumentation-urllib (>=0.40b0,<1.0)"] pure-eval = ["asttokens", "executing", "pure-eval"] pymongo = ["pymongo (>=3.1)"] pyspark = ["pyspark (>=2.4.4)"] @@ -4022,4 +4018,4 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" python-versions = "~3.11" -content-hash = "a0917acd4474403dcb7dd034f1d738100d3294d65331d1e6a8be9df7ddea3421" +content-hash = "acdf5b76465425aef6dd682721e4b867f8abf311305398f7f5fbdb6d89199066" diff --git a/backoffice-repo/backoffice/pyproject.toml b/backoffice-repo/backoffice/pyproject.toml index 47ef9cc03..401d78150 100644 --- a/backoffice-repo/backoffice/pyproject.toml +++ b/backoffice-repo/backoffice/pyproject.toml @@ -137,7 +137,6 @@ psycopg = {version = "3.1.12", extras = ["c"]} watchfiles = "0.20.0" gunicorn = "21.2.0" Collectfast = "2.2.0" -sentry-sdk = "1.31.0" django-storages = {version = "1.14.2", extras = ["s3"]} django-anymail = "10.1" dj-database-url = "^2.1.0" @@ -150,6 +149,7 @@ opensearch-dsl = "^2.1.0" opensearch-py = "2.6.0" djangorestframework-simplejwt = "^5.3.1" django-json-widget = "^2.0.1" +sentry-sdk = "1.19.1" [tool.poetry.dev-dependencies] factory-boy = "3.3.0"