Log stack trace if exception without message (#67587)
This commit is contained in:
parent
57ffc65af2
commit
fbc39d1206
2 changed files with 14 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue