Working around an exception class change in Python 3.11

This commit is contained in:
Mark Adams 2024-12-08 23:54:30 +00:00
parent a714221b22
commit 2011333a71

View file

@ -133,7 +133,9 @@ async def output(running, queue, path, format):
try:
msg = await asyncio.wait_for(queue.get(), 0.5)
except TimeoutError:
except:
# Hopefully it's TimeoutError. Annoying to match since
# it changed in 3.11.
continue
if format == "msgpack":