Skip to content

Commit

Permalink
Refer to the PersistenceDecryptionError wiki page
Browse files Browse the repository at this point in the history
  • Loading branch information
rayluo committed Feb 8, 2022
1 parent c98bcba commit a9a7f6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion msal_extensions/persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ def load(self):
except OSError as exception:
raise PersistenceDecryptionError(
err_no=getattr(exception, "winerror", None), # Exists in Python 3 on Windows
message="Decryption failed: {}. You may have to delete the file.".format(exception), # pylint: disable=consider-using-f-string
message="Decryption failed: {}. " # pylint: disable=consider-using-f-string
"App developer may consider this guidance: "
"https://github.com/AzureAD/microsoft-authentication-extensions-for-python/wiki/PersistenceDecryptionError" # pylint: disable=line-too-long
.format(exception),
location=self._location,
)

Expand Down
2 changes: 1 addition & 1 deletion msal_extensions/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def raw(self):
return blob_buffer.raw

_err_description = {
# Keys came from real world observation, values came from winerror.h (https://errors)
# Keys came from real world observation, values came from winerror.h (http://errors)
-2146893813: "Key not valid for use in specified state.",
-2146892987: "The requested operation cannot be completed. "
"The computer must be trusted for delegation and "
Expand Down

0 comments on commit a9a7f6a

Please sign in to comment.