From 814d8eaf2535240a1175719ba4cb6c9b0aaa5f6f Mon Sep 17 00:00:00 2001 From: Myned Date: Sun, 19 Nov 2017 23:41:51 -0500 Subject: [PATCH] Change to use intrinsic boolean value for None types --- src/main/cogs/booru.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/cogs/booru.py b/src/main/cogs/booru.py index bba4ef1..db6fb4c 100644 --- a/src/main/cogs/booru.py +++ b/src/main/cogs/booru.py @@ -1324,7 +1324,7 @@ class MsG: @_get_blacklist.group(name='all', aliases=['a']) async def __get_all_blacklists(self, ctx): - if ctx.invoked_subcommand is None: + if not ctx.invoked_subcommand: await ctx.send('**Invalid blacklist**') await ctx.message.add_reaction('\N{CROSS MARK}')