We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 363e836 commit a8c857aCopy full SHA for a8c857a
scripts/spartan/World.py
@@ -516,6 +516,9 @@ def config(self) -> dict:
516
517
logger.info(f"translated legacy config")
518
return config
519
+ else:
520
+ open(self.config_path, 'w')
521
+ logger.info(f"Generated new config file at '{self.config_path}'")
522
523
with open(self.config_path, 'r') as config:
524
try:
@@ -529,6 +532,10 @@ def load_config(self):
529
532
This function should be called after worker command arguments are parsed.
530
533
"""
531
534
config_raw = self.config()
535
+ if config_raw is None:
536
+ logger.debug("cannot parse null config (present but empty config file?)")
537
+ return
538
+
539
config = Config_Model(**config_raw)
540
541
# saves config schema to <extension>/distributed-config.schema.json
0 commit comments