summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/sbin/bcfg26
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2
index 5b9270595..5afa9d7e5 100755
--- a/src/sbin/bcfg2
+++ b/src/sbin/bcfg2
@@ -7,7 +7,11 @@ from ConfigParser import ConfigParser, NoSectionError, NoOptionError
from lxml.etree import Element, XML, tostring, XMLSyntaxError
import getopt, logging, os, signal, sys, tempfile, time, traceback, xmlrpclib
-import Bcfg2.Client.Proxy, Bcfg2.Logging
+try:
+ import Bcfg2.Client.Proxy, Bcfg2.Logging
+except KeyError:
+ print "Could not read options from configuration file"
+ raise SystemExit, 1
def cb_sigint_handler(signum, frame):
'''Exit upon CTRL-C'''