mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 16:36:20 +00:00
create_node.py: allow config['webport'] to be missing, for check_memory
This commit is contained in:
parent
1b406f3c32
commit
a76898244b
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user