Commit 296def8
committed
narrow exception in count_input_cfg_levels to FileNotFoundError
The broad silently swallowed all errors when
_resolve_if_path could not load a YAML file, masking real problems
(permission errors, malformed YAML, etc.).
The only legitimate failure case is FileNotFoundError: when a nested
input_cfg YAML contains OmegaConf interpolations like
, raw yaml.load returns them as
literal strings that don't exist on disk. parse_and_combine_datasets
resolves these later via OmegaConf.create(). All other errors should
propagate immediately since they would also crash parse_and_combine_datasets.
Also documents file-path input_cfg depth counting in the RST docs.
Signed-off-by: Xuesong Yang <1646669+XuesongYang@users.noreply.github.com>1 parent c8e2146 commit 296def8
2 files changed
Lines changed: 35 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
224 | 246 | | |
225 | 247 | | |
226 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
481 | | - | |
482 | | - | |
483 | | - | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
484 | 485 | | |
485 | 486 | | |
486 | 487 | | |
| |||
502 | 503 | | |
503 | 504 | | |
504 | 505 | | |
505 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
506 | 514 | | |
507 | 515 | | |
508 | 516 | | |
509 | 517 | | |
510 | 518 | | |
511 | | - | |
| 519 | + | |
512 | 520 | | |
513 | 521 | | |
514 | 522 | | |
| |||
0 commit comments