From 803f11089107a1bcf3fd702a0f05eec50032c122 Mon Sep 17 00:00:00 2001 From: cybermaggedon Date: Mon, 9 Dec 2024 00:31:03 +0000 Subject: [PATCH] Timeout alias error (#202) --- trustgraph-cli/scripts/tg-load-kg-core | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trustgraph-cli/scripts/tg-load-kg-core b/trustgraph-cli/scripts/tg-load-kg-core index cada13a7..3d31dd25 100755 --- a/trustgraph-cli/scripts/tg-load-kg-core +++ b/trustgraph-cli/scripts/tg-load-kg-core @@ -128,7 +128,9 @@ async def loader(running, ge_queue, t_queue, path, format, user, collection): try: await asyncio.wait_for(qtype.put(unpacked[1]), 0.5) - except TimeoutError: + except: + # Hopefully it's TimeoutError. Annoying to match since + # it changed in 3.11. continue if not running.get(): break