From ba30b5d9bff7a523adeec86a9ba77285ade019e8 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 24 Apr 2022 12:33:48 -0400 Subject: [PATCH] Fix null match --- piker/brokers/ib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/brokers/ib.py b/piker/brokers/ib.py index 1e47ebee..8ae14e5d 100644 --- a/piker/brokers/ib.py +++ b/piker/brokers/ib.py @@ -1561,7 +1561,7 @@ async def open_history_client( # TODO: add logic here to handle tradable hours and only grab # valid bars in the range - if out == (None, None): + if out is None: # could be trying to retreive bars over weekend log.error(f"Can't grab bars starting at {end_dt}!?!?") raise NoData(