Skip to content

Commit

Permalink
Fast-follower: fix broken formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
athornton committed Oct 31, 2024
1 parent e9732a5 commit 684939d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ Find changes for the upcoming release in the project's [changelog.d directory](h

<!-- scriv-insert-here -->

<a id='changelog-8.0.2'></a>
## 8.0.2 (2024-10-31)

### Bug fixes

- Correct broken formatting.

<a id='changelog-8.0.1'></a>
## 8.0.1 (2024-10-31)

Expand Down
6 changes: 3 additions & 3 deletions client/src/rubin/nublado/client/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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

0 comments on commit 684939d

Please sign in to comment.