Do not fail when cleaning up loop file handlers

This commit is contained in:
Daniel A. Wozniak 2023-05-18 20:10:52 -07:00 committed by Gareth J. Greenaway
parent 117cd6861d
commit 1f145c0f6e

View file

@ -108,7 +108,10 @@ class SyncWrapper:
log.exception("Exception encountered while running stop method")
io_loop = self.io_loop
io_loop.stop()
io_loop.close(all_fds=True)
try:
io_loop.close(all_fds=True)
except KeyError:
pass
def __getattr__(self, key):
if key in self._async_methods: