diff options
-rw-r--r-- | pgpwordlist/funcs.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pgpwordlist/funcs.py b/pgpwordlist/funcs.py index 37a17be..c3648be 100644 --- a/pgpwordlist/funcs.py +++ b/pgpwordlist/funcs.py @@ -33,10 +33,7 @@ _w2hex = _make_reverse_lookup(_words) def get_word(hexstr, offset): - hexstr = hexstr.lower() - t = _words.get(hexstr) - if t is None: - raise KeyError(hexstr) + t = _words[hexstr.lower()] return t[offset % 2] |