We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1980cfe commit 451f3efCopy full SHA for 451f3ef
1 file changed
plugwise_usb/helpers/cache.py
@@ -48,6 +48,8 @@ def cache_root_directory(self, cache_root_dir: str = "") -> None:
48
async def initialize_cache(self) -> None:
49
"""Set (and create) the plugwise cache directory to store cache file."""
50
if self._root_dir != "":
51
+ if not await ospath.exists(self._root_dir):
52
+ raise CacheError(f"Unable to initialize caching. Cache folder '{self._root_dir}' does not exists.")
53
cache_dir = self._root_dir
54
else:
55
cache_dir = self._get_writable_os_dir()
0 commit comments