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(