aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/finder/plugin/searcher/file/name.py6
1 files changed, 5 insertions, 1 deletions
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):