未验证 提交 4c92f8c0 编写于 作者: A Anselm Hahn 提交者: GitHub

Replace main with __main__ (#3518)

上级 a481bfa2
......@@ -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>")
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册