Removes inaccurate authentication error handling around CLI characters.

pull/2087/head
Kieran R. Prasch 2020-06-09 17:19:38 -07:00
parent 1b1d21c79f
commit f450412955
1 changed files with 3 additions and 7 deletions

View File

@ -88,13 +88,9 @@ def make_cli_character(character_config,
#
# Produce Character
try:
CHARACTER = character_config(known_nodes=teacher_nodes,
network_middleware=character_config.network_middleware,
**config_args)
except (CryptoError, ValueError):
raise character_config.keyring.AuthenticationFailed(f"Failed to unlock nucypher keyring. "
"Are you sure you provided the correct password?")
CHARACTER = character_config(known_nodes=teacher_nodes,
network_middleware=character_config.network_middleware,
**config_args)
#
# Post-Init