From a62c3aa1df9e0f79ac75d94083d10b902dbba382 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 (cherry picked from commit 7789eefc01deb9ca7fe90f5521aece3e36c3c350) --- src/ceph.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph.in b/src/ceph.in index 8de12324655cb..2b6adf4dc579a 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -446,7 +446,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