fixes missing return statement

pull/3554/head
KPrasch 2024-08-13 20:23:05 +02:00 committed by derekpierre
parent 4f29da7961
commit b6738b4ac0
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -444,6 +444,7 @@ def audit(config_file, keystore_filepath, view_mnemonic):
correct = keystore.audit(words=collect_mnemonic(emitter), password=password)
except Keystore.InvalidMnemonic:
emitter.message("Mnemonic is incorrect.", color="red")
return
emitter.message(
f"Mnemonic is {'' if correct else 'in'}correct.",
color="green" if correct else "red",