mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Fix crash when saving token file
This commit is contained in:
parent
3b713a14ab
commit
785bf52d73
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
==============
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue