Fix/save core hang (#201)

* Working around an exception class change in Python 3.11
This commit is contained in:
cybermaggedon 2024-12-09 00:01:01 +00:00 committed by GitHub
parent a714221b22
commit cf8c76b5c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View file

@ -29,7 +29,9 @@ async def load_ge(running, queue, url):
try:
msg = await asyncio.wait_for(queue.get(), 1)
except TimeoutError:
except:
# Hopefully it's TimeoutError. Annoying to match since
# it changed in 3.11.
continue
msg = {
@ -55,7 +57,9 @@ async def load_triples(running, queue, url):
try:
msg = await asyncio.wait_for(queue.get(), 1)
except TimeoutError:
except:
# Hopefully it's TimeoutError. Annoying to match since
# it changed in 3.11.
continue
msg ={

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":