mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Attempt downgrade to sentry-sdk 1.8.*
This commit is contained in:
@@ -27,9 +27,14 @@ 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
|
||||||
from sentry_sdk.consts import OP
|
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.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
|
||||||
@@ -152,7 +157,11 @@ 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
|
||||||
djangosentry.signals_handlers.patch_signals = patched_patch_signals
|
try:
|
||||||
|
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
|
||||||
|
|||||||
@@ -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.10.*', # when upgrading, check https://github.com/getsentry/sentry-python/issues/1700
|
'sentry-sdk==1.8.*', # 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.*',
|
||||||
|
|||||||
Reference in New Issue
Block a user