diff options
| author | 2020-02-21 18:01:12 +0000 | |
|---|---|---|
| committer | 2020-02-21 18:01:12 +0000 | |
| commit | cc623e96965d511e7408590d36b7017ea9d6b495 (patch) | |
| tree | 6d8aa8f67dbc06d527a60ba8c50bfad3dd387d25 | |
| parent | Use log.error instead of capture_exception (diff) | |
Use push_scope instead of configure_scope
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/error_handler.py | 4 | 
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) | 
