summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2020-05-12 12:12:29 -0400
committerEli Collins <elic@assurancetechnologies.com>2020-05-12 12:12:29 -0400
commitb8eff68d18df6a85b725eabebdc7cfd9fd6cfe50 (patch)
treeeb335fa7d8558708985abd2c2a9aa932f24c6f14
parentc8d8ad8e90dac480b8c5ab1019266b34026b9b30 (diff)
downloadpasslib-b8eff68d18df6a85b725eabebdc7cfd9fd6cfe50.tar.gz
registry: tweak get_supported_os_crypt_schemes() warning message
to include platform information.
-rw-r--r--passlib/registry.py5
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