Skip to content

Commit

Permalink
Merge pull request #1756 from elementary-data/ele-3826-fix-teams-webh…
Browse files Browse the repository at this point in the history
…ook-alerts

Response object has no attribute body, replaced with text
  • Loading branch information
MikaKerman authored Nov 19, 2024
2 parents c1f9167 + d70f9e2 commit 6a8a491
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion elementary/clients/slack/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def send_message(self, message: SlackMessageSchema, **kwargs) -> bool:

else:
logger.error(
f"Could not post message to slack via webhook - {self.webhook}. Error: {response.body}"
f"Could not post message to slack via webhook - {self.webhook}. Error: {response.text}"
)
return False

Expand Down
2 changes: 1 addition & 1 deletion elementary/clients/teams/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def send_message(self, **kwargs) -> bool:
logger.error(
"Could not post message to teams via webhook - %s. Error: %s",
{self.webhook},
{response.body},
{response.text},
)
return False

Expand Down

0 comments on commit 6a8a491

Please sign in to comment.