ruff: Fix UP032 Use f-string instead of format call.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit a1a341f0ae)
This commit is contained in:
Anders Kaseorg
2024-03-20 19:43:05 -07:00
committed by Tim Abbott
parent b4f67e85b5
commit 95bdce69c1
11 changed files with 35 additions and 68 deletions

View File

@@ -205,9 +205,7 @@ def send_mm_reply_to_stream(
message_content=body,
)
except JsonableError as error:
error_message = "Error sending message to stream {stream} via message notification email reply:\n{error}".format(
stream=stream.name, error=error.msg
)
error_message = f"Error sending message to stream {stream.name} via message notification email reply:\n{error.msg}"
internal_send_private_message(
get_system_bot(settings.NOTIFICATION_BOT, user_profile.realm_id),
user_profile,