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

View File

@@ -221,7 +221,7 @@ setup(
'redis==4.3.*', 'redis==4.3.*',
'reportlab==3.6.*', 'reportlab==3.6.*',
'requests==2.28.*', 'requests==2.28.*',
'sentry-sdk==1.8.*', # when upgrading, check https://github.com/getsentry/sentry-python/issues/1700 'sentry-sdk==1.10.*', # when upgrading, check https://github.com/getsentry/sentry-python/issues/1700
'sepaxml==2.5.*', 'sepaxml==2.5.*',
'slimit', 'slimit',
'static3==0.7.*', 'static3==0.7.*',