Log internal exceptions on API level

This commit is contained in:
Pascal Vizeli 2018-04-22 10:16:24 +02:00
parent 1a6f6085e6
commit 808fc0f8b6

View File

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