Not having a gennet config should not be considered an error.

This commit is contained in:
Alberto Soutullo 2023-02-21 21:08:53 +01:00 committed by Alberto Soutullo Rendo
parent d8c3429bb6
commit e58a7aaf6b
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ def conf_callback(ctx: typer.Context, param: typer.CallbackParam, cfile: str):
conf = json.load(f)
if "gennet" not in conf:
print(f"Gennet configuration not found in {cfile}. Skipping topology generation.")
sys.exit(1)
sys.exit(0)
if "general" in conf and "prng_seed" in conf["general"]:
conf["gennet"]["prng_seed"] = conf["general"]["prng_seed"]
# TODO : type-check and sanity-check the config.json