From 8eb70b1f4fc9f6945fb1f49d669ad24e473d0ded Mon Sep 17 00:00:00 2001 From: montezdesousa Date: Mon, 10 Jul 2023 21:13:44 +0100 Subject: [PATCH] add func name to error --- .../openbb_sdk_core/openbb_sdk_core/app/command_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/command_runner.py b/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/command_runner.py index 6f489ce04ff..51b7a0aab4f 100644 --- a/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/command_runner.py +++ b/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/command_runner.py @@ -175,7 +175,7 @@ class ParametersBuilder: ) for n, p in sig.parameters.items() } - ValidationModel = create_model("ValidationModel", __config__=Config, **fields) # type: ignore + ValidationModel = create_model(func.__name__, __config__=Config, **fields) # type: ignore model = ValidationModel(**kwargs) result = dict(model)