From 700c5e4f326c355ed3c57cc0506fee358dfbd34a Mon Sep 17 00:00:00 2001 From: matejcik Date: Fri, 27 Dec 2019 11:34:10 +0100 Subject: [PATCH] python: fix expand-words functionality in recovery (fixes #778) --- python/src/trezorlib/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/trezorlib/ui.py b/python/src/trezorlib/ui.py index fc0f6e20f4..9d486b67b6 100644 --- a/python/src/trezorlib/ui.py +++ b/python/src/trezorlib/ui.py @@ -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)