From 73f9cd27d90ccd63c561cef0709470564a06b3c1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 27 Jul 2024 19:46:06 -0300 Subject: Fix: plugin: opener: searcher: use asyncio.create_task instead of asyncio.TaskGroup --- packages/finder/plugin/searcher/file/name.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/finder/plugin/searcher/file/name.py b/packages/finder/plugin/searcher/file/name.py index b6319fe..85bacbd 100644 --- a/packages/finder/plugin/searcher/file/name.py +++ b/packages/finder/plugin/searcher/file/name.py @@ -49,8 +49,7 @@ class FinderPluginFileNameSearcher(): self.items = json.load(f) # Then update the folder list in the background - async with asyncio.TaskGroup() as tg: - walker = tg.create_task(self.walker()) + walker = asyncio.create_task(self.walker()) return self.items -- cgit v1.2.3