2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-02-14 19:59:00 +00:00

Gracefully accept loop cancellation in async

This commit is contained in:
Jarrod Johnson
2026-01-28 16:22:53 -05:00
parent 5c6fb7f7ef
commit e75a1dc7ad

View File

@@ -243,6 +243,8 @@ async def _ipmi_evtloop():
while _ipmiwaiters:
waiter = _ipmiwaiters.pop()
waiter.send()
except asyncio.CancelledError:
break
except: # TODO(jbjohnso): log the trace into the log
traceback.print_exc()