mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-09 19:09:41 +00:00
Make exeption more useful (#1922)
This commit is contained in:
@@ -120,7 +120,7 @@ async def api_validate(
|
||||
try:
|
||||
data_validated = schema(data)
|
||||
except vol.Invalid as ex:
|
||||
raise APIError(humanize_error(data, ex)) from None
|
||||
raise APIError(humanize_error(data, ex))
|
||||
|
||||
if not origin:
|
||||
return data_validated
|
||||
|
||||
Reference in New Issue
Block a user