File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,11 @@ def _mkdir_p(path):
48
48
# We do not aim to wrap every os-specific exception.
49
49
# Here we define only the most common one,
50
50
# otherwise caller would need to catch os-specific persistence exceptions.
51
- class PersistenceNotFound (OSError ):
51
+ class PersistenceNotFound (IOError ): # Use IOError rather than OSError as base,
52
+ # because historically an IOError was bubbled up and expected.
53
+ # https://github.com/AzureAD/microsoft-authentication-extensions-for-python/blob/0.2.2/msal_extensions/token_cache.py#L38
54
+ # Now we want to maintain backward compatibility even when using Python 2.x
55
+ # It makes no difference in Python 3.3+ where IOError is an alias of OSError.
52
56
def __init__ (
53
57
self ,
54
58
err_no = errno .ENOENT , message = "Persistence not found" , location = None ):
You can’t perform that action at this time.
0 commit comments