summaryrefslogtreecommitdiffstats
path: root/openbb_platform/core/openbb_core/app/static/utils/decorators.py
diff options
context:
space:
mode:
Diffstat (limited to 'openbb_platform/core/openbb_core/app/static/utils/decorators.py')
-rw-r--r--openbb_platform/core/openbb_core/app/static/utils/decorators.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbb_platform/core/openbb_core/app/static/utils/decorators.py b/openbb_platform/core/openbb_core/app/static/utils/decorators.py
index 18eadeffa69..0d44b87427c 100644
--- a/openbb_platform/core/openbb_core/app/static/utils/decorators.py
+++ b/openbb_platform/core/openbb_core/app/static/utils/decorators.py
@@ -62,7 +62,8 @@ def exception_handler(func: Callable[P, R]) -> Callable[P, R]:
validation_error = f"{e.error_count()} validations errors in {e.title}"
for error in e.errors():
- arg_error = f"Arg {error['loc'][0]} ->\n"
+ arg = ".".join(map(str, error["loc"]))
+ arg_error = f"Arg {arg} ->\n"
error_details = (
f" {error['msg']} "
f"[validation_error_type={error['type']}, "