From 7789eefc01deb9ca7fe90f5521aece3e36c3c350 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 24 Apr 2015 14:04:30 +0800 Subject: [PATCH] ceph.in: handle unknown Exception correctly * in case parse_cmdargs() throws Signed-off-by: Kefu Chai --- src/ceph.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph.in b/src/ceph.in index 476839169ffff..e3cc7b29bea2e 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -394,7 +394,7 @@ def new_style_command(parsed_args, cmdargs, target, sigdict, inbuf, verbose): except Exception as e: print >> sys.stderr, \ 'error handling command target: {0}'.format(e) - return 1 + return 1, '', '' valid_dict = validate_command(sigdict, cmdargs, verbose) if valid_dict: if parsed_args.output_format: -- 2.39.5