Skip to content

Commit bdce6b3

Browse files
committed
Do not expect the cache folder to exist
try to create it instead
1 parent b80a355 commit bdce6b3

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

plugwise_usb/helpers/cache.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ def cache_root_directory(self, cache_root_dir: str = "") -> None:
4848
async def initialize_cache(self) -> None:
4949
"""Set (and create) the plugwise cache directory to store cache file."""
5050
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.")
5351
cache_dir = self._root_dir
5452
else:
5553
cache_dir = self._get_writable_os_dir()

0 commit comments

Comments
 (0)