From 2011333a7105574eda93d761179b3dd20397da1b Mon Sep 17 00:00:00 2001 From: Mark Adams Date: Sun, 8 Dec 2024 23:54:30 +0000 Subject: [PATCH] Working around an exception class change in Python 3.11 --- trustgraph-cli/scripts/tg-save-kg-core | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trustgraph-cli/scripts/tg-save-kg-core b/trustgraph-cli/scripts/tg-save-kg-core index f2509dba..e52cd7dc 100755 --- a/trustgraph-cli/scripts/tg-save-kg-core +++ b/trustgraph-cli/scripts/tg-save-kg-core @@ -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":