samba-tool: Correctly handle sys.exit() called from subcommand
commitb2a7fe166c95ef5d5f5b6af76303cc8d456ac816
authorAmitay Isaacs <amitay@gmail.com>
Fri, 9 Sep 2011 03:22:27 +0000 (9 13:22 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 9 Sep 2011 05:24:04 +0000 (9 15:24 +1000)
tree0a54ae94394951530dd09a5b11abbb92f5d1b1cc
parentabd7368e769f7e378594f44e569ef69e7bd626c9
samba-tool: Correctly handle sys.exit() called from subcommand

Catch SystemExit exception if any subcommand calls sys.exit()
and return with failure (-1).

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/scripting/bin/samba-tool