mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
outgoing_webhook: Avoid logging a bytes string.
This fixes the new assertLogs() tests failing in CI; we fixed the weird use of bytes in the test, but not in the runtime code.
This commit is contained in:
@@ -310,7 +310,7 @@ def do_rest_call(base_url: str,
|
||||
"%(response)s\"",
|
||||
{'message_url': get_message_url(event),
|
||||
'status_code': response.status_code,
|
||||
'response': response.content})
|
||||
'response': response.content.decode()})
|
||||
failure_message = f"Third party responded with {response.status_code}"
|
||||
fail_with_message(event, failure_message)
|
||||
notify_bot_owner(event, response.status_code, response.content)
|
||||
|
||||
Reference in New Issue
Block a user