aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/error_handler.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts/evergreen/error_handler.py')
-rw-r--r--bot/exts/evergreen/error_handler.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/bot/exts/evergreen/error_handler.py b/bot/exts/evergreen/error_handler.py
index 1662af50..8fcbb8f2 100644
--- a/bot/exts/evergreen/error_handler.py
+++ b/bot/exts/evergreen/error_handler.py
@@ -113,7 +113,10 @@ class CommandErrorHandler(commands.Cog):
return
if isinstance(error, commands.CheckFailure):
- await ctx.send(embed=self.error_embed("You are not authorized to use this command.", NEGATIVE_REPLIES))
+ await ctx.send(
+ embed=self.error_embed(
+ "You are not authorized to use this command.",
+ NEGATIVE_REPLIES))
return
if isinstance(error, UserNotPlayingError):
@@ -121,8 +124,10 @@ class CommandErrorHandler(commands.Cog):
return
if isinstance(error, ExternalAPIError):
- await ctx.send(embed=self.error_embed(f"There was an error when communicating with the {error.api}",
- NEGATIVE_REPLIES))
+ await ctx.send(
+ embed=self.error_embed(
+ f"There was an error when communicating with the {error.api}",
+ NEGATIVE_REPLIES))
return
with push_scope() as scope: