Revert "Attempt downgrade to sentry-sdk 1.8.*"

This reverts commit c1d1e437cc.
This commit is contained in:
Raphael Michel
2022-10-31 14:10:11 +01:00
parent c1d1e437cc
commit 0204b42587
2 changed files with 4 additions and 13 deletions

View File

@@ -27,14 +27,9 @@ from functools import wraps
from celery.exceptions import Retry
from django.dispatch import Signal
from sentry_sdk import Hub
try:
from sentry_sdk.consts import OP
from sentry_sdk.integrations.django.signals_handlers import _get_receiver_name
except ImportError:
# sentry-sdk<1.10
class OP:
EVENT_DJANGO = "event.django"
from sentry_sdk.consts import OP
from sentry_sdk.integrations import django as djangosentry
from sentry_sdk.integrations.django.signals_handlers import _get_receiver_name
from sentry_sdk.utils import capture_internal_exceptions
MASK = '*' * 8
@@ -157,11 +152,7 @@ class PretixSentryIntegration(djangosentry.DjangoIntegration):
# This is a workaround for https://github.com/getsentry/sentry-python/issues/1700
# that needs to stay until it is fixed
djangosentry.patch_signals = patched_patch_signals
try:
djangosentry.signals_handlers.patch_signals = patched_patch_signals
except AttributeError:
# sentry-sdk < 1.10.*
pass
djangosentry.signals_handlers.patch_signals = patched_patch_signals
djangosentry.DjangoIntegration.setup_once()
from django.core.handlers.base import BaseHandler