Skip to content

Commit 4c92f8c

Browse files
authored
Replace main with __main__ (#3518)
1 parent a481bfa commit 4c92f8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: web_programming/slack_message.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def send_slack_message(message_body: str, slack_url: str) -> None:
1313
)
1414

1515

16-
if __name__ == "main":
16+
if __name__ == "__main__":
1717
# Set the slack url to the one provided by Slack when you create the webhook at
1818
# https://my.slack.com/services/new/incoming-webhook/
1919
send_slack_message("<YOUR MESSAGE BODY>", "<SLACK CHANNEL URL>")

0 commit comments

Comments
 (0)