Skip to content

Commit 6e75664

Browse files
return an empty Dataframe if nothing is returned
1 parent 074f053 commit 6e75664

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

calcbench/api_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def normalized_data(company_identifiers,
8686
)
8787
response.raise_for_status()
8888
data = response.json()
89+
if not data:
90+
return pd.DataFrame()
8991
quarterly = start_period and end_period
9092
if quarterly:
9193
build_period = _build_quarter_period

0 commit comments

Comments
 (0)