Ignore ohlc step stream subs lookup errors

fsp_feeds
Tyler Goodlet 2021-09-05 12:50:15 -04:00
parent 9c4437b179
commit e95589e5b0
1 changed files with 7 additions and 2 deletions

View File

@ -151,7 +151,12 @@ async def iter_ohlc_periods(
# stream and block until cancelled # stream and block until cancelled
await trio.sleep_forever() await trio.sleep_forever()
finally: finally:
try:
subs.remove(ctx) subs.remove(ctx)
except ValueError:
log.error(
f'iOHLC step stream was already dropped for {ctx.chan.uid}?'
)
async def sample_and_broadcast( async def sample_and_broadcast(