Skip to content

Commit

Permalink
Fix cache dir creation on Windows
Browse files Browse the repository at this point in the history
Fixes: #126
  • Loading branch information
radomirbosak committed Mar 26, 2021
1 parent 5af6e16 commit b7a6978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion duden/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def function_wrapper(cache_key, cache=True, **kwargs):

if cache:
# try to read from cache
cachedir.mkdir(exist_ok=True)
cachedir.mkdir(parents=True, exist_ok=True)
try:
with gzip.open(full_path, 'rt', encoding='utf8') as f:
return f.read()
Expand Down

0 comments on commit b7a6978

Please sign in to comment.