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:
Tim Abbott
2020-10-29 15:55:09 -07:00
parent 7106069d4d
commit 3b9c726fc6

View File

@@ -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)