From 4c92f8c0d06cbeeddcb7efc443f2043a5692b893 Mon Sep 17 00:00:00 2001 From: Anselm Hahn Date: Sun, 18 Oct 2020 21:54:43 +0200 Subject: [PATCH] Replace main with __main__ (#3518) --- web_programming/slack_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_programming/slack_message.py b/web_programming/slack_message.py index 8ea9d5d0a..f35aa3ca5 100644 --- a/web_programming/slack_message.py +++ b/web_programming/slack_message.py @@ -13,7 +13,7 @@ def send_slack_message(message_body: str, slack_url: str) -> None: ) -if __name__ == "main": +if __name__ == "__main__": # Set the slack url to the one provided by Slack when you create the webhook at # https://my.slack.com/services/new/incoming-webhook/ send_slack_message("", "")