diff --git a/openbb_sdk/sdk/core/openbb_core/app/model/command_output.py b/openbb_sdk/sdk/core/openbb_core/app/model/command_output.py index f042e42f2ad..b7407e54b0f 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/model/command_output.py +++ b/openbb_sdk/sdk/core/openbb_core/app/model/command_output.py @@ -56,6 +56,8 @@ class CommandOutput(GenericModel, Generic[T], Tagged): df.index = pd.to_datetime(df.index) except ValueError: df = pd.DataFrame(self.dict()["results"], index=["values"]).T + except Exception as e: + raise OpenBBError("Failed to convert results to dataframe.") from e return df