create_node.py: allow config['webport'] to be missing, for check_memory

This commit is contained in:
Brian Warner 2007-10-11 02:19:59 -07:00
parent 1b406f3c32
commit a76898244b

View File

@ -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()