diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2020-05-12 12:12:29 -0400 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2020-05-12 12:12:29 -0400 |
commit | b8eff68d18df6a85b725eabebdc7cfd9fd6cfe50 (patch) | |
tree | eb335fa7d8558708985abd2c2a9aa932f24c6f14 | |
parent | c8d8ad8e90dac480b8c5ab1019266b34026b9b30 (diff) | |
download | passlib-b8eff68d18df6a85b725eabebdc7cfd9fd6cfe50.tar.gz |
registry: tweak get_supported_os_crypt_schemes() warning message
to include platform information.
-rw-r--r-- | passlib/registry.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/passlib/registry.py b/passlib/registry.py index d4ef6d0..5c9cb6e 100644 --- a/passlib/registry.py +++ b/passlib/registry.py @@ -518,8 +518,11 @@ def get_supported_os_crypt_schemes(): if get_crypt_handler(name).has_backend(OS_CRYPT)) if not cache: # pragma: no cover -- sanity check # no idea what OS this could happen on... + import platform warn("crypt.crypt() function is present, but doesn't support any " - "formats known to passlib!", exc.PasslibRuntimeWarning) + "formats known to passlib! (system=%r release=%r)" % + (platform.system(), platform.release()), + exc.PasslibRuntimeWarning) return cache |