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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user