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:
parent
516edbe825
commit
700c5e4f32
@ -138,7 +138,7 @@ def mnemonic_words(expand=False, language="english"):
|
|||||||
return word
|
return word
|
||||||
matches = [w for w in wordlist if w.startswith(word)]
|
matches = [w for w in wordlist if w.startswith(word)]
|
||||||
if len(matches) == 1:
|
if len(matches) == 1:
|
||||||
return word
|
return matches[0]
|
||||||
echo("Choose one of: " + ", ".join(matches))
|
echo("Choose one of: " + ", ".join(matches))
|
||||||
raise KeyError(word)
|
raise KeyError(word)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user