Skip to content

Commit

Permalink
fix teams return code check
Browse files Browse the repository at this point in the history
  • Loading branch information
lawndoc committed Aug 26, 2024
1 parent 70ee3fe commit a0a8459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ def send_teams_message(webhook_url, title, details):
]
}
response = requests.post(webhook_url, json=json_data, headers=headers)
if response.status_code != 202:
if response.status_code != 200:
raise WebhookException(f"Failed to send message to Teams. Status code: {response.status_code}")

0 comments on commit a0a8459

Please sign in to comment.