Skip to content

Commit a977289

Browse files
committed
Refer to the PersistenceDecryptionError wiki page
1 parent c98bcba commit a977289

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

msal_extensions/persistence.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,10 @@ def load(self):
221221
except OSError as exception:
222222
raise PersistenceDecryptionError(
223223
err_no=getattr(exception, "winerror", None), # Exists in Python 3 on Windows
224-
message="Decryption failed: {}. You may have to delete the file.".format(exception), # pylint: disable=consider-using-f-string
224+
message="Decryption failed: {}. "
225+
"App developer may consider this guidance: "
226+
"https://github.com/AzureAD/microsoft-authentication-extensions-for-python/wiki/PersistenceDecryptionError"
227+
.format(exception), # pylint: disable=consider-using-f-string
225228
location=self._location,
226229
)
227230

msal_extensions/windows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def raw(self):
4040
return blob_buffer.raw
4141

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

0 commit comments

Comments
 (0)