From 99bd34de3e3502d2dd4dcc6eacaf81494df9a3e1 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Mon, 13 Jul 2020 21:47:59 +0100 Subject: [PATCH] Using "if not" instead of "if x: pass" --- main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.py b/main.py index 20713d98..43b22de7 100644 --- a/main.py +++ b/main.py @@ -34,10 +34,7 @@ async def on_message(message): return # Don't count messages that are taken in the dms - if isinstance(message.channel, DMChannel): - pass - else: - + if not isinstance(message.channel, DMChannel): # Using connection to the database with db.connection() as conn: