Py2: If file doesn't exist, IOError will be raised

Fix #414
This commit is contained in:
Markus Unterwaditzer 2016-04-08 00:02:49 +02:00
parent f8a3961de5
commit 46639ff65e

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