summaryrefslogtreecommitdiff
path: root/passlib/crypto
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2020-10-07 14:46:57 -0400
committerEli Collins <elic@assurancetechnologies.com>2020-10-07 14:46:57 -0400
commit7086228eec5138cd40d39e18c7a132b703d07cdc (patch)
treef94719c8916600054ac764a3100fa4d63404553b /passlib/crypto
parentd221b9006a1370a79bc19b8b645250d2bf35397c (diff)
downloadpasslib-7086228eec5138cd40d39e18c7a132b703d07cdc.tar.gz
passlib.context: now raises UnknownHashError() if hash can't be identified.
this inherits from ValueError, and has same text, so backwards compatible.
Diffstat (limited to 'passlib/crypto')
-rw-r--r--passlib/crypto/digest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/passlib/crypto/digest.py b/passlib/crypto/digest.py
index 0a9b77a..8da9b5e 100644
--- a/passlib/crypto/digest.py
+++ b/passlib/crypto/digest.py
@@ -469,7 +469,7 @@ class HashInfo(SequenceMixin):
helper that installs stub constructor which throws specified error <msg>.
"""
def const(source=b""):
- raise exc.UnknownHashError(name, message=msg)
+ raise exc.UnknownHashError(msg, name)
if required:
# if caller only wants supported digests returned,
# just throw error immediately...