Skip to content

Commit

Permalink
Tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mithun Shivashankar committed Feb 20, 2025
1 parent 5d45423 commit 4da81fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion asabiris/output/msteams/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def send(self, body, tenant):
webhook_url = self.TeamsWebhookUrl

# If tenant-specific MS Teams configuration is available, fetch the webhook URL
if tenant:
if tenant and self.ConfigService is not None:
try:
webhook_url = self.ConfigService.get_msteams_config(tenant)
except KeyError:
Expand Down
2 changes: 1 addition & 1 deletion asabiris/output/slack/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def send_message(self, blocks, fallback_message, tenant=None) -> None:

token, channel = (self.SlackWebhookUrl, self.Channel)

if tenant:
if tenant and self.ConfigService is not None:
try:
token, channel = self.ConfigService.get_slack_config(tenant)
except KeyError:
Expand Down

0 comments on commit 4da81fa

Please sign in to comment.