Skip to content

Commit 0fe7d3a

Browse files
[FIX] sentry: Fix DeprecationWarning for sentry_sdk.push_scope
See: https://docs.sentry.io/platforms/python/migration/1.x-to-2.x\#scope-pushing
1 parent 2ffe4e9 commit 0fe7d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry/hooks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def initialize_sentry(config):
142142
# Patch the wsgi server in case of further registration
143143
odoo.http.Application = SentryWsgiMiddleware(odoo.http.Application)
144144

145-
with sentry_sdk.push_scope() as scope:
145+
with sentry_sdk.new_scope() as scope:
146146
scope.set_extra("debug", False)
147147
sentry_sdk.capture_message("Starting Odoo Server", "info")
148148

0 commit comments

Comments
 (0)