Using "if not" instead of "if x: pass"

pull/8/head
sgoudham 4 years ago
parent c5b631f8b6
commit 99bd34de3e

@ -34,10 +34,7 @@ async def on_message(message):
return return
# Don't count messages that are taken in the dms # Don't count messages that are taken in the dms
if isinstance(message.channel, DMChannel): if not isinstance(message.channel, DMChannel):
pass
else:
# Using connection to the database # Using connection to the database
with db.connection() as conn: with db.connection() as conn:

Loading…
Cancel
Save