mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-20 10:41:02 +02:00
Working around an exception class change in Python 3.11
This commit is contained in:
parent
a714221b22
commit
2011333a71
1 changed files with 3 additions and 1 deletions
|
|
@ -133,7 +133,9 @@ async def output(running, queue, path, format):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
msg = await asyncio.wait_for(queue.get(), 0.5)
|
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
|
continue
|
||||||
|
|
||||||
if format == "msgpack":
|
if format == "msgpack":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue