From 1f8ccb6c933bb46f5e20dfaf410bda54147b027c Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Fri, 12 Feb 2016 15:54:03 +0530 Subject: [PATCH] monkeysphere: Fix error with no host keys --- actions/monkeysphere | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/actions/monkeysphere b/actions/monkeysphere index 6a8b0fc75..31ad6f937 100755 --- a/actions/monkeysphere +++ b/actions/monkeysphere @@ -53,9 +53,11 @@ def subcommand_host_show_keys(arguments): """Show host key fingerprints.""" try: output = subprocess.check_output( - ['monkeysphere-host', 'show-keys'] + arguments.key_ids) + ['monkeysphere-host', 'show-keys'] + arguments.key_ids, + stderr=subprocess.DEVNULL) except subprocess.CalledProcessError: # no keys available + print(json.dumps({'keys': []})) return # parse output