Skip to content

Commit

Permalink
list_of_data cannot be empty
Browse files Browse the repository at this point in the history
...even if the FuturesContractPrices dataframes are all empty.

Fails when trying to concatenate, and there are no DFs to concatenate.
  • Loading branch information
tgibson11 authored Jan 16, 2025
1 parent 7c5c860 commit 54aad40
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sysproduction/update_historical_prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,7 @@ def write_merged_prices_for_contract(
contract_object,
frequency=frequency,
)
if len(prices) > 0:
list_of_data.append(prices)
list_of_data.append(prices)

merged_prices = merge_data_with_different_freq(list_of_data)

Expand Down

0 comments on commit 54aad40

Please sign in to comment.