summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-07-21 10:44:06 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-07-21 10:44:06 -0500
commit52f9abbc8171a441a3f85108cc51a1143531c92c (patch)
tree70663c87724c229828ea201bdb584f5b72fc5930 /src/sbin
parent494dea763857f784fb789243bda569c5bec0f10a (diff)
downloadbcfg2-52f9abbc8171a441a3f85108cc51a1143531c92c.tar.gz
bcfg2-52f9abbc8171a441a3f85108cc51a1143531c92c.tar.bz2
bcfg2-52f9abbc8171a441a3f85108cc51a1143531c92c.zip
bcfg2-admin: Revert some changes that are not py3k compatible
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/bcfg2-admin5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin
index 4c92a0e2e..0056a97aa 100755
--- a/src/sbin/bcfg2-admin
+++ b/src/sbin/bcfg2-admin
@@ -69,8 +69,9 @@ def main():
raise SystemExit(0)
try:
mode_cls = mode_import(modname)
- except ImportError, err:
- log.error("Failed to load admin mode %s: %s" % (modname, err))
+ except ImportError:
+ e = sys.exc_info()[1]
+ log.error("Failed to load admin mode %s: %s" % (modname, e))
raise SystemExit(1)
mode = mode_cls(setup['configfile'])
mode(setup['args'][1:])