summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
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:])