summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-20 18:26:46 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-20 18:26:46 -0400
commitc2092425357918f705601bfc1ea89534dbf8a05c (patch)
treea3153b8990390951471d327195aed6642cb35990 /server
parent0472b715a7137cb2958ae6c7b96495d1d880853a (diff)
parent425f61b97305e9a44d9f31c8a82c633c95f61edc (diff)
Merge branch 'master' of ssh://git.fedoraproject.org/git/hosted/func
Diffstat (limited to 'server')
-rwxr-xr-xserver/config_data.py2
-rwxr-xr-xserver/server.py6
2 files changed, 6 insertions, 2 deletions
diff --git a/server/config_data.py b/server/config_data.py
index b9a4bc8..7ace8ca 100755
--- a/server/config_data.py
+++ b/server/config_data.py
@@ -35,7 +35,7 @@ class Config:
def read(self):
if not os.path.exists(CONFIG_FILE):
- raise FuncException(comment="Missing %s" % CONFIG_FILE)
+ raise FuncException("Missing %s" % CONFIG_FILE)
cp = ConfigParser.ConfigParser()
diff --git a/server/server.py b/server/server.py
index 3069d0a..a313301 100755
--- a/server/server.py
+++ b/server/server.py
@@ -153,7 +153,11 @@ def main(argv):
modules = module_loader.load_modules()
print "modules", modules
- websvc = XmlRpcInterface(modules=modules)
+ try:
+ websvc = XmlRpcInterface(modules=modules)
+ except FuncException, e:
+ print >> sys.stderr, 'error: %s' % e
+ sys.exit(1)
if "daemon" in sys.argv or "--daemon" in sys.argv:
utils.daemonize("/var/run/vf_server.pid")