mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-18 12:55:52 +00:00
Merge pull request #415 from pimutils/issue-414
Py2: If file doesn't exist, IOError will be raised
This commit is contained in:
commit
2386f1c1bc
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ class GoogleSession(dav.DavSession):
|
|||
try:
|
||||
with open(token_file) as f:
|
||||
token = json.load(f)
|
||||
except OSError:
|
||||
except (OSError, IOError):
|
||||
pass
|
||||
|
||||
def _save_token(token):
|
||||
|
|
|
|||
Loading…
Reference in a new issue