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