summaryrefslogtreecommitdiff
path: root/passlib/exc.py
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2012-04-27 03:16:08 -0400
committerEli Collins <elic@assurancetechnologies.com>2012-04-27 03:16:08 -0400
commit332d8d949d27b4431ef4d7fb1044b8511a1188cb (patch)
tree14a967cb04b5d7f679b7962329e30f3cf68292c0 /passlib/exc.py
parent09aa392f4362ac7532184435f9f9f8cd15dc5aba (diff)
downloadpasslib-332d8d949d27b4431ef4d7fb1044b8511a1188cb.tar.gz
assorted small details that weren't covered in the last few merges
Diffstat (limited to 'passlib/exc.py')
-rw-r--r--passlib/exc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/passlib/exc.py b/passlib/exc.py
index e3c175b..db9d3ec 100644
--- a/passlib/exc.py
+++ b/passlib/exc.py
@@ -159,8 +159,8 @@ def ChecksumSizeError(handler, raw=False):
# not from parsing a hash string, might want different error msg.
checksum_size = handler.checksum_size
unit = "bytes" if raw else "chars"
- return ValueError("checksum wrong size (%s checksum must be "
- "exactly %d %s" % (handler.name, checksum_size, unit))
+ reason = "checksum must be exactly %d %s" % (checksum_size, unit)
+ return MalformedHashError(handler, reason)
#==========================================================================
# eof