aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/status_codes.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts/evergreen/status_codes.py')
-rw-r--r--bot/exts/evergreen/status_codes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/exts/evergreen/status_codes.py b/bot/exts/evergreen/status_codes.py
index f4c6763e..53d7b964 100644
--- a/bot/exts/evergreen/status_codes.py
+++ b/bot/exts/evergreen/status_codes.py
@@ -37,6 +37,7 @@ class HTTPStatusCodes(commands.Cog):
"""Send a cat version of the requested HTTP status code."""
if code in range(100, 599):
await self.build_embed(url=HTTP_CAT_URL.format(code=code), ctx=ctx, code=code)
+ return
await ctx.send(
embed=discord.Embed(
title="Input status code does not exist",
@@ -49,6 +50,7 @@ class HTTPStatusCodes(commands.Cog):
"""Send a dog version of the requested HTTP status code."""
if code in range(100, 599):
await self.build_embed(url=HTTP_CAT_URL.format(code=code), ctx=ctx, code=code)
+ return
await ctx.send(
embed=discord.Embed(
title="Input status code does not exist",