diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f1d51328..8d91e4a04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ Find changes for the upcoming release in the project's [changelog.d directory](h + +## 8.0.2 (2024-10-31) + +### Bug fixes + +- Correct broken formatting. + ## 8.0.1 (2024-10-31) diff --git a/client/src/rubin/nublado/client/exceptions.py b/client/src/rubin/nublado/client/exceptions.py index f175edf6d..3878f1806 100644 --- a/client/src/rubin/nublado/client/exceptions.py +++ b/client/src/rubin/nublado/client/exceptions.py @@ -252,7 +252,7 @@ def to_slack(self) -> SlackMessage: ) if self.body: block = SlackTextBlock( - heading="Body", text=f"```{_sanitize_body(self.body)}```" + heading="Body", text=_sanitize_body(self.body) ) msg.attachments.append(block) return msg @@ -329,7 +329,7 @@ def to_slack(self) -> SlackMessage: attachments.append(attachment) if self.code: attachment = SlackCodeBlock( - heading="Code executed", code=f"```{self.code}```" + heading="Code executed", code=self.code ) attachments.append(attachment) @@ -649,7 +649,7 @@ def to_slack(self) -> SlackMessage: field = SlackTextField(heading="Code", text=str(self.code)) message.fields.append(field) if self.body: - block = SlackTextBlock(heading="Body", text=f"```{self.body}```") + block = SlackTextBlock(heading="Body", text=self.body) message.attachments.append(block) return message