From a76898244b55f75de84550778a842dc3b07efda0 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 11 Oct 2007 02:19:59 -0700 Subject: [PATCH] create_node.py: allow config['webport'] to be missing, for check_memory --- src/allmydata/scripts/create_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/scripts/create_node.py b/src/allmydata/scripts/create_node.py index af20957c..aab1eaba 100644 --- a/src/allmydata/scripts/create_node.py +++ b/src/allmydata/scripts/create_node.py @@ -52,7 +52,7 @@ def create_client(basedir, config, out=sys.stdout, err=sys.stderr): f = open(os.path.join(basedir, "client.tac"), "w") f.write(client_tac) f.close() - if config['webport'].lower() != "none": + if config.get('webport', "none").lower() != "none": f = open(os.path.join(basedir, "webport"), "w") f.write(config['webport'] + "\n") f.close() -- 2.45.2