From 3c691568b458443396e24ec36a98ba098fb16ab6 Mon Sep 17 00:00:00 2001 From: Gustavo Carneiro Date: Tue, 10 Aug 2021 17:11:46 +0100 Subject: [PATCH] sentry: use push_scope() instead of configure_scope(), potentially more correct --- yacron/job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yacron/job.py b/yacron/job.py index e45a875..06fe539 100644 --- a/yacron/job.py +++ b/yacron/job.py @@ -133,7 +133,7 @@ async def report( extra, body, ) - with sentry_sdk.configure_scope() as scope: + with sentry_sdk.push_scope() as scope: for key, val in extra.items(): scope.set_extra(key, val) scope.fingerprint = fingerprint