aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-27 19:46:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-27 19:46:06 -0300
commit73f9cd27d90ccd63c561cef0709470564a06b3c1 (patch)
tree1282ca9d4939a747213c4d70dc8b0d76959df4df
parent770aa6798461cc3467d3a47946cf30358e495745 (diff)
downloadfinder-73f9cd27d90ccd63c561cef0709470564a06b3c1.tar.gz
finder-73f9cd27d90ccd63c561cef0709470564a06b3c1.tar.bz2
Fix: plugin: opener: searcher: use asyncio.create_task instead of asyncio.TaskGroup
-rw-r--r--packages/finder/plugin/searcher/file/name.py3
1 files changed, 1 insertions, 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