1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-03 12:00:59 +00:00

python: fix expand-words functionality in recovery (fixes #778)

This commit is contained in:
matejcik 2019-12-27 11:34:10 +01:00
parent 516edbe825
commit 700c5e4f32

View File

@ -138,7 +138,7 @@ def mnemonic_words(expand=False, language="english"):
return word
matches = [w for w in wordlist if w.startswith(word)]
if len(matches) == 1:
return word
return matches[0]
echo("Choose one of: " + ", ".join(matches))
raise KeyError(word)