Log stack trace if exception without message (#67587)

This commit is contained in:
Paulus Schoutsen 2022-03-04 00:48:07 -08:00 committed by GitHub
parent 57ffc65af2
commit fbc39d1206
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 4 deletions

View file

@ -54,6 +54,11 @@ async def test_exception_handling():
"Failed to do X",
),
(ValueError("Really bad"), websocket_api.ERR_UNKNOWN_ERROR, "Unknown error"),
(
exceptions.HomeAssistantError(),
websocket_api.ERR_UNKNOWN_ERROR,
"Unknown error",
),
):
send_messages.clear()
conn.async_handle_exception({"id": 5}, exc)