From 4dd0f232ae75a6b26a0188cb4820de6ddd3d34da Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 17 Sep 2008 13:39:14 +0530 Subject: Notify the user if autotua_master is unset --- slave/autotua/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slave/autotua/config.py b/slave/autotua/config.py index 8b1bdb0..2474112 100644 --- a/slave/autotua/config.py +++ b/slave/autotua/config.py @@ -44,7 +44,9 @@ if os.path.exists('%s/slave.cfg' % const.CONFIG_PATH): exec('%s = %s' % (option, cfg.getint('global', option.lower()))) if not AUTOTUA_MASTER: - raise Exception('You need to set the autotua_master variable in slave.cfg (or AUTOTUA_MASTER in config.py)') + print "!!! WARNING: You did not edit the autotua_master variable in slave.cfg (or AUTOTUA_MASTER in config.py)" + print "!!! Using default value of http://localhost:8000/" + AUTOTUA_MASTER = 'http://localhost:8000' # Import all the constants now from const import * -- cgit v1.2.3-65-gdbad