From f54f83bb0d3d9db7b88cfd26e2c6b93b535053e7 Mon Sep 17 00:00:00 2001 From: Midgard Date: Tue, 3 Sep 2019 00:36:39 +0200 Subject: [PATCH] Check truthness instead of length --- chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat.py b/chat.py index 8064eac..4d15880 100644 --- a/chat.py +++ b/chat.py @@ -82,7 +82,7 @@ def messages_post(): if len(message) > 200: return "Message too long, maximum 200" - if len(message) == 0: + if not message: return "No message found" if "spam" in str(message, "UTF-8").lower():