From 808fc0f8b6c7466ff9b74be82163371cc9ceb47b Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 22 Apr 2018 10:16:24 +0200 Subject: [PATCH] Log internal exceptions on API level --- hassio/api/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hassio/api/utils.py b/hassio/api/utils.py index ce71d9ec1..ae5921313 100644 --- a/hassio/api/utils.py +++ b/hassio/api/utils.py @@ -34,6 +34,7 @@ def api_process(method): except RuntimeError as err: return api_return_error(message=str(err)) except HassioError: + _LOGGER.exception("Hassio error") return api_return_error() if isinstance(answer, dict):