Skip to content

Commit 5c0f3ca

Browse files
committed
Handle file not found exceptions on Python 2.7
1 parent 35641c3 commit 5c0f3ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msal_extensions/token_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def _reload_if_necessary(self):
3535
if self._last_sync < self._persistence.time_last_modified():
3636
self.deserialize(self._persistence.load())
3737
self._last_sync = time.time()
38-
except IOError as exp:
38+
except EnvironmentError as exp:
3939
if exp.errno != errno.ENOENT:
4040
raise
4141
# Otherwise, from cache's perspective, a nonexistent file is a NO-OP

0 commit comments

Comments
 (0)