aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/error_handler.py
diff options
context:
space:
mode:
authorGravatar D0rs4n <[email protected]>2021-08-08 15:51:44 +0200
committerGravatar D0rs4n <[email protected]>2021-08-08 15:51:44 +0200
commitff0d3a833bbbe517f50124c5157223ff95876931 (patch)
treea857bc79dcc672d01a907eab7381b25759c872fb /bot/exts/evergreen/error_handler.py
parentResolve merge conflict (diff)
Improve code consitency in Wikipedia Cog,Exceptions, and Error handler
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: