not printing when empty
This commit is contained in:
@@ -149,7 +149,7 @@ def send_post_notify_message_to_stoat(list_of_people_to_notify, infomap):
|
||||
#print('list_of_people_to_notify: ', list_of_people_to_notify)
|
||||
message = f"Map changed to: {infomap}\n\n"
|
||||
for people in list_of_people_to_notify:
|
||||
if not people: continue
|
||||
if not people or people == "[]": continue
|
||||
people = people.replace('["', '').replace('"]', '')
|
||||
message += f"<@{people}> "
|
||||
if not message.endswith("\n"):
|
||||
|
||||
Reference in New Issue
Block a user