]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: handle unknown Exception correctly 4452/head
authorKefu Chai <kchai@redhat.com>
Fri, 24 Apr 2015 06:04:30 +0000 (14:04 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 24 Apr 2015 07:25:30 +0000 (15:25 +0800)
* in case parse_cmdargs() throws

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph.in

index 476839169ffff038bc1501ec07b9fea8691383a9..e3cc7b29bea2e1edb5870050a380883e986ce494 100755 (executable)
@@ -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: