Skip to content

Commit

Permalink
[FIX] sentry: Fix DeprecationWarning for sentry_sdk.push_scope
Browse files Browse the repository at this point in the history
  • Loading branch information
hnavarro-kernet committed Feb 2, 2025
1 parent 2ffe4e9 commit 5fe496e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def initialize_sentry(config):
# Patch the wsgi server in case of further registration
odoo.http.Application = SentryWsgiMiddleware(odoo.http.Application)

with sentry_sdk.push_scope() as scope:
with sentry_sdk.new_scope() as scope:
scope.set_extra("debug", False)
sentry_sdk.capture_message("Starting Odoo Server", "info")

Expand Down

0 comments on commit 5fe496e

Please sign in to comment.