TOSQUASH 9005335e18: pack empty dict on no flow

ib_py311_fixes
Tyler Goodlet 2023-08-29 08:45:45 -04:00
parent ad37cfbe2f
commit e54c3dc523
1 changed files with 4 additions and 1 deletions

View File

@ -1249,7 +1249,10 @@ async def deliver_trade_events(
if err['reqid'] == -1:
log.error(f'TWS external order error:\n{pformat(err)}')
flow: dict = dict(flows.get(reqid)) or {}
flow: dict = dict(
flows.get(reqid)
or {}
)
# TODO: we don't want to relay data feed / lookup errors
# so we need some further filtering logic here..