aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joseph Banks <[email protected]>2020-02-21 18:01:12 +0000
committerGravatar Joseph Banks <[email protected]>2020-02-21 18:01:12 +0000
commitcc623e96965d511e7408590d36b7017ea9d6b495 (patch)
tree6d8aa8f67dbc06d527a60ba8c50bfad3dd387d25
parentUse log.error instead of capture_exception (diff)
Use push_scope instead of configure_scope
-rw-r--r--bot/cogs/error_handler.py4
1 files 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)