s4-samba-tool: fixed exception handling in subcommands
commit37bfc4ec384df71a4cb1c19ceb136fecd3b9afc6
authorAndrew Tridgell <tridge@samba.org>
Mon, 29 Nov 2010 03:15:57 +0000 (29 14:15 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 29 Nov 2010 07:04:42 +0000 (29 18:04 +1100)
treee44efedee115beac377d1fc9ab3a22c5e6cc2cee
parent62506903101e8e8e1cfc6c70fee245f97c646844
s4-samba-tool: fixed exception handling in subcommands

this switches to the new pattern of:

 except Exception, e:
  raise CommandError("some error message", e)
13 files changed:
source4/scripting/python/samba/netcmd/drs.py
source4/scripting/python/samba/netcmd/gpo.py
source4/scripting/python/samba/netcmd/group.py
source4/scripting/python/samba/netcmd/newuser.py
source4/scripting/python/samba/netcmd/ntacl.py
source4/scripting/python/samba/netcmd/pwsettings.py
source4/scripting/python/samba/netcmd/rodc.py
source4/scripting/python/samba/netcmd/setpassword.py
source4/scripting/python/samba/ntacls.py
source4/scripting/python/samba/provision/__init__.py
source4/scripting/python/samba/samdb.py
source4/scripting/python/samba/schema.py
source4/scripting/python/samba/upgradehelpers.py