fix for new state handling
This commit is contained in:
parent
b4b4181bd0
commit
a744cb85b4
@ -22,8 +22,6 @@ if TYPE_CHECKING:
|
||||
def parse_api_resp_to_df(
|
||||
resp: SalesPrognosisResponse,
|
||||
) -> pd.DataFrame:
|
||||
if resp.error is not None:
|
||||
raise ValueError("Response contains error code. Parsing aborted.")
|
||||
data = resp.model_dump()["daten"]
|
||||
|
||||
return pd.DataFrame(data)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user