Skip to content
Snippets Groups Projects
Commit a27250e0 authored by Carsten Hinz's avatar Carsten Hinz
Browse files

fixed bug

parent e2b5a27f
No related branches found
No related tags found
1 merge request!11Creation of first beta release version
...@@ -111,7 +111,7 @@ class Cache: ...@@ -111,7 +111,7 @@ class Cache:
if not cache_dir.exists(): if not cache_dir.exists():
raise RuntimeError(f"Given directory for saving cache file does not exists. Path: {cache_dir}") raise RuntimeError(f"Given directory for saving cache file does not exists. Path: {cache_dir}")
self.cache_file = cache_dir / fn / ".json" self.cache_file = cache_dir / f"{fn}.json"
if not self.cache_file.is_file(): # initialize cache with dummy values if not self.cache_file.is_file(): # initialize cache with dummy values
with open(self.cache_file, "w") as cache: with open(self.cache_file, "w") as cache:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment