Skip to content

Commit

Permalink
Ensure existence of parents of cache directory
Browse files Browse the repository at this point in the history
Ref. #442, #449
  • Loading branch information
treiher committed Sep 29, 2020
1 parent c3563b8 commit 6c59a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rflx/parser/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def add_verified(self, message: AbstractMessage) -> None:
@staticmethod
def _initialize_cache() -> None:
if not CACHE_DIR.exists():
CACHE_DIR.mkdir()
CACHE_DIR.mkdir(parents=True)
if not (CACHE_DIR / VERIFICATION_FILE).exists():
with open(CACHE_DIR / VERIFICATION_FILE, "w") as f:
json.dump({}, f)
Expand Down

0 comments on commit 6c59a81

Please sign in to comment.