Skip to content

Commit

Permalink
Fix bug getting ticker object
Browse files Browse the repository at this point in the history
  • Loading branch information
tgibson11 authored Jul 28, 2023
1 parent 36e0a43 commit d2f07b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sysbrokers/IB/ib_futures_contract_price_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ def get_ticker_object_for_contract_and_trade_qty(
futures_contract
)
)
except missingContract:
except missingContract as e:
new_log.warning("Can't get data for %s" % str(futures_contract))
return futuresContractPrices.create_empty()
raise e

ticker_with_bs = self.ib_client.get_ticker_object_with_BS(
contract_object_with_ib_data,
Expand Down

0 comments on commit d2f07b9

Please sign in to comment.