Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Sep 8 00:34:22 CEST 2011 on sn-devel-104
sys.path.insert(0, "bin/python")
from samba import netcmd
-from samba.netcmd import Command, CommandError, Option
+from samba.netcmd import Command, CommandError
+
class MainCommand(Command):
"""Main class for samba tool commands"""
try:
retval = cmd._run("samba-tool", command, *args)
sys.exit(retval)
- except Exception as e:
+ except Exception, e:
cmd.show_command_error(e)