summaryrefslogtreecommitdiff
path: root/passlib/crypto/digest.py
diff options
context:
space:
mode:
Diffstat (limited to 'passlib/crypto/digest.py')
-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...