We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b53155d commit 136df8dCopy full SHA for 136df8d
1 file changed
src/blueapi/config.py
@@ -368,15 +368,9 @@ def use_values_from_yaml(self, *paths: Path) -> None:
368
path (Path): Path to YAML/JSON file
369
"""
370
371
- # Split reading and loading so that a missing file does not leave
372
- # config in partially loaded state
373
- configs = []
374
for path in paths:
375
with path.open("r") as stream:
376
- configs.append(yaml.load(stream, yaml.Loader))
377
-
378
- for values in configs:
379
- self.use_values(values)
+ self.use_values(yaml.load(stream, yaml.Loader))
380
381
def load(self) -> C:
382
0 commit comments