From 4475823e485871abd6bbd6eeab13e9fb5fee33be Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 21 Jun 2022 12:52:45 -0400 Subject: [PATCH] Add draft ip-mismatch skip case --- piker/brokers/ib/feed.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/piker/brokers/ib/feed.py b/piker/brokers/ib/feed.py index 1b2bfb45..bc3ec8d5 100644 --- a/piker/brokers/ib/feed.py +++ b/piker/brokers/ib/feed.py @@ -217,8 +217,8 @@ async def get_bars( ) elif ( - err.code == 162 - and 'HMDS query returned no data' in err.message + err.code == 162 and + 'HMDS query returned no data' in err.message ): # XXX: this is now done in the storage mgmt layer # and we shouldn't implicitly decrement the frame dt @@ -237,6 +237,13 @@ async def get_bars( frame_size=2000, ) + # elif ( + # err.code == 162 and + # 'Trading TWS session is connected from a different IP address' in err.message + # ): + # log.warning("ignoring ip address warning") + # continue + elif _pacing in msg: log.warning(