Skip to content

Commit

Permalink
ceph.in: handle unknown Exception correctly
Browse files Browse the repository at this point in the history
* in case parse_cmdargs() throws

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 7789eef)
  • Loading branch information
tchaikov committed May 27, 2015
1 parent cc7f744 commit a62c3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ceph.in
Expand Up @@ -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:
Expand Down

0 comments on commit a62c3aa

Please sign in to comment.