diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-27 20:19:57 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-27 20:19:57 -0300 |
commit | e75f8d69a85e13d697d91f0bd9f282babc1eeb00 (patch) | |
tree | 7671897f5c43e467098309734a4b46e14a827bf2 | |
parent | f35d3d43ec0136a57de260ed315fc5ba615ddb66 (diff) | |
download | finder-e75f8d69a85e13d697d91f0bd9f282babc1eeb00.tar.gz finder-e75f8d69a85e13d697d91f0bd9f282babc1eeb00.tar.bz2 |
Fix: plugin: opener: searcher: check for platformdirs
-rw-r--r-- | packages/finder/plugin/searcher/file/name.py | 6 |
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): |