From cc623e96965d511e7408590d36b7017ea9d6b495 Mon Sep 17 00:00:00 2001 From: Joseph Banks Date: Fri, 21 Feb 2020 18:01:12 +0000 Subject: Use push_scope instead of configure_scope --- bot/cogs/error_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/cogs/error_handler.py b/bot/cogs/error_handler.py index 8261633ee..589448b9a 100644 --- a/bot/cogs/error_handler.py +++ b/bot/cogs/error_handler.py @@ -15,7 +15,7 @@ from discord.ext.commands import ( UserInputError, ) from discord.ext.commands import Cog, Context -from sentry_sdk import configure_scope +from sentry_sdk import push_scope from bot.api import ResponseCodeError from bot.bot import Bot @@ -149,7 +149,7 @@ class ErrorHandler(Cog): f"```{e.__class__.__name__}: {e}```" ) - with configure_scope() as scope: + with push_scope() as scope: scope.user = { "id": ctx.author.id, "username": str(ctx.author) -- cgit v1.2.3