Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

webhook: Fix f-string str-bytes-safe error.

Zixuan James Liaa733f0bbd0b
diff --git a/zerver/management/commands/send_webhook_fixture_message.py b/zerver/management/commands/send_webhook_fixture_message.py
index 54c53c107e2..7b3d8b0e6c2 100644
--- a/zerver/management/commands/send_webhook_fixture_message.py
+++ b/zerver/management/commands/send_webhook_fixture_message.py
@@ -91,7 +91,7 @@ approach shown above.
options["url"], json, content_type="application/json", HTTP_HOST=realm.host
)
if result.status_code != 200:
- raise CommandError(f"Error status {result.status_code}: {result.content}")
+ raise CommandError(f"Error status {result.status_code}: {result.content!r}")
def _does_fixture_path_exist(self, fixture_path: str) -> bool:
return os.path.exists(fixture_path)