From bb5b955becca4eada9c9938b98befc07aaf7f77b Mon Sep 17 00:00:00 2001 From: Lawrence Hudson Date: Wed, 23 Apr 2014 11:53:45 +0100 Subject: [PATCH] Fixed exception raised when len(wordlist)!=256 --- humanhash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/humanhash.py b/humanhash.py index b9380df..ad1866a 100644 --- a/humanhash.py +++ b/humanhash.py @@ -65,7 +65,7 @@ class HumanHasher(object): def __init__(self, wordlist=DEFAULT_WORDLIST): if len(wordlist) != 256: - raise ArgumentError("Wordlist must have exactly 256 items") + raise ValueError("Wordlist must have exactly 256 items") self.wordlist = wordlist def humanize(self, hexdigest, words=4, separator='-'):