1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 14:58:09 +00:00

core: remove unused variables in Shamir recovery

This commit is contained in:
Tomas Susanka 2019-06-27 14:10:20 +02:00
parent c205acd3e1
commit 6c50b155de
2 changed files with 1 additions and 8 deletions

View File

@ -76,7 +76,7 @@ async def recovery_device(ctx, msg):
if remaining == 0:
try:
secret = mnemonic_module.process_all(mnemonics)
except slip39.MnemonicError as e:
except slip39.MnemonicError:
raise wire.ProcessError("Mnemonic is not valid")
# show a number of remaining mnemonics for SLIP39
if secret is None and mnemonic_module == mnemonic.slip39:

View File

@ -594,13 +594,6 @@ def combine_mnemonics(mnemonics):
for group_index, group in groups.items():
if len(group[1]) != group[0]:
prefix = _group_prefix(
identifier,
iteration_exponent,
group_index,
group_threshold,
group_count,
)
raise MnemonicError(
"Wrong number of mnemonics. Expected {} mnemonics, but {} were provided.".format(
group[0], len(group[1])