mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-01 06:51:38 +00:00
raise another exception
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user