From 409434dbf9c14fb47d20c1329f86a3863f19a2be Mon Sep 17 00:00:00 2001 From: brad90four <42116429+brad90four@users.noreply.github.com> Date: Fri, 29 Oct 2021 15:49:57 -0400 Subject: fix: iterate through tuple Co-authored-by: Sn4u <35849006+Sn4u@users.noreply.github.com> --- bot/exts/utilities/color.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') diff --git a/bot/exts/utilities/color.py b/bot/exts/utilities/color.py index a21b74e4..035f7d6a 100644 --- a/bot/exts/utilities/color.py +++ b/bot/exts/utilities/color.py @@ -113,7 +113,7 @@ class Colour(commands.Cog): @colour.command() async def cmyk(self, ctx: commands.Context, cyan: int, magenta: int, yellow: int, key: int) -> None: """Command to create an embed from a CMYK input.""" - if any(c not in range(0, 101) for c in (cyan or magenta or yellow or key)): + if any(c not in range(0, 101) for c in (cyan, magenta, yellow, key)): raise BadArgument( message=f"CMYK values can only be from 0 to 100. User input was: `{cyan, magenta, yellow, key}`." ) -- cgit v1.2.3