Skip to content

Commit

Permalink
Cleaned up use of Keyring object in cli_check_keyring()
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
  • Loading branch information
andy-maier committed Apr 4, 2021
1 parent 24b384a commit 2a61ff3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easy_vault/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ def cli_check_keyring(**options):
"""
verbose = not options['quiet']

kr = Keyring()
try:
Keyring.check_available()
kr.check_available()
except KeyringNotAvailable as exc:
if verbose:
click.echo("Error: {}".format(exc))
Expand Down

0 comments on commit 2a61ff3

Please sign in to comment.