TOSQUASH 9005335e18: pack empty dict on no flow
parent
ad37cfbe2f
commit
e54c3dc523
|
@ -1249,7 +1249,10 @@ async def deliver_trade_events(
|
||||||
if err['reqid'] == -1:
|
if err['reqid'] == -1:
|
||||||
log.error(f'TWS external order error:\n{pformat(err)}')
|
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
|
# TODO: we don't want to relay data feed / lookup errors
|
||||||
# so we need some further filtering logic here..
|
# so we need some further filtering logic here..
|
||||||
|
|
Loading…
Reference in New Issue