From 7151ba8ff8265de4ccfcb7afbe2db0c3e0efc064 Mon Sep 17 00:00:00 2001 From: brad90four <42116429+brad90four@users.noreply.github.com> Date: Tue, 31 Aug 2021 14:26:49 -0400 Subject: All ranges are inclusive Changed the range check for the status code. Previously was 599, now 600. --- bot/exts/evergreen/status_codes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bot/exts/evergreen/status_codes.py') diff --git a/bot/exts/evergreen/status_codes.py b/bot/exts/evergreen/status_codes.py index 56cc5786..54b43304 100644 --- a/bot/exts/evergreen/status_codes.py +++ b/bot/exts/evergreen/status_codes.py @@ -39,7 +39,7 @@ class HTTPStatusCodes(commands.Cog): @http_status_group.command(name="cat") async def http_cat(self, ctx: commands.Context, code: int) -> None: """Send a cat version of the requested HTTP status code.""" - if code in range(100, 599): + if code in range(100, 600): await self.build_embed(url=HTTP_CAT_URL.format(code=code), ctx=ctx, code=code) return await ctx.send(embed=ERROR_LENGTH_EMBED) @@ -47,7 +47,7 @@ class HTTPStatusCodes(commands.Cog): @http_status_group.command(name="dog") async def http_dog(self, ctx: commands.Context, code: int) -> None: """Send a dog version of the requested HTTP status code.""" - if code in range(100, 599): + if code in range(100, 600): await self.build_embed(url=HTTP_DOG_URL.format(code=code), ctx=ctx, code=code) return await ctx.send(embed=ERROR_LENGTH_EMBED) -- cgit v1.2.3