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 <[email protected]>
  • Loading branch information
tchaikov committed Apr 24, 2015
1 parent da9d2b4 commit 7789eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ceph.in
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7789eef

Please sign in to comment.