From e75f8d69a85e13d697d91f0bd9f282babc1eeb00 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 27 Jul 2024 20:19:57 -0300 Subject: Fix: plugin: opener: searcher: check for platformdirs --- packages/finder/plugin/searcher/file/name.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/finder/plugin/searcher/file/name.py b/packages/finder/plugin/searcher/file/name.py index c6a96de..f01688f 100644 --- a/packages/finder/plugin/searcher/file/name.py +++ b/packages/finder/plugin/searcher/file/name.py @@ -23,7 +23,11 @@ import re import json import asyncio -from platformdirs import user_cache_dir +try: + from platformdirs import user_cache_dir +except ImportError: + print("Please install platformdirs first!") + raise ImportError class FinderPluginFileNameSearcher(): def __init__(self, path): -- cgit v1.2.3