Replace main with __main__ (#3518)

This commit is contained in:
Anselm Hahn 2020-10-18 21:54:43 +02:00 committed by GitHub
parent a481bfa231
commit 4c92f8c0d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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("<YOUR MESSAGE BODY>", "<SLACK CHANNEL URL>")