Fix crash when saving token file

This commit is contained in:
Markus Unterwaditzer 2017-03-07 16:12:23 +01:00
parent 3b713a14ab
commit 785bf52d73
2 changed files with 2 additions and 1 deletions

View file

@ -13,6 +13,7 @@ Version 0.16.0
==============
- Strip ``METHOD:PUBLISH`` added by some calendar providers.
- Fix crash of Google storages when saving token file.
Version 0.15.0
==============

View file

@ -59,7 +59,7 @@ class GoogleSession(dav.DAVSession):
)
def _save_token(token):
checkdir(os.path.dirname(token_file), create=True)
checkdir(expand_path(os.path.dirname(token_file)), create=True)
with atomic_write(token_file, mode='w', overwrite=True) as f:
json.dump(token, f)