Merge pull request #415 from pimutils/issue-414

Py2: If file doesn't exist, IOError will be raised
This commit is contained in:
Markus Unterwaditzer 2016-04-08 00:20:36 +02:00
commit 2386f1c1bc

View file

@ -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):