Check truthness instead of length
This commit is contained in:
parent
3c4f11dcb7
commit
f54f83bb0d
1 changed files with 1 additions and 1 deletions
2
chat.py
2
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():
|
||||
|
|
Loading…
Reference in a new issue