Skip to content

Commit

Permalink
Fixed a couple of incorrect string interpolations. (robusta-dev#1169)
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshrvel authored and pavangudiwada committed May 30, 2024
1 parent 070413d commit 3542180
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/robusta/integrations/mattermost/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def get_channel_id(self, channel_name: str) -> Optional[str]:
if chan["name"] == channel_name:
return chan["id"]
else:
logging.error("Received error response from MM on channel search: {str(response)}")
logging.error(f"Received error response from MM on channel search: {str(response)}")

def get_team_id(self, team_name: str) -> Optional[str]:
if not self.is_admin:
Expand Down
2 changes: 1 addition & 1 deletion src/robusta/integrations/slack/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def __create_finding_header(self, finding: Finding, status: FindingStatus, platf
sev = finding.severity
if finding.source == FindingSource.PROMETHEUS:
status_name: str = (
"{status.to_emoji()} `Prometheus Alert Firing`"
f"{status.to_emoji()} `Prometheus Alert Firing`"
if status == FindingStatus.FIRING
else "*Prometheus resolved*"
)
Expand Down

0 comments on commit 3542180

Please sign in to comment.