POD settings.jsonc parsing fails silently
Closed this issue · 0 comments
jkrasting commented
If there is an error in a POD settings.jsonc file, the framework dies with a rather unintuitive error messge:
File "MDTF-diagnostics/src/diagnostic.py", line 493, in from_config
return cls.from_struct(pod_name, config.pod_data[pod_name])
KeyError: 'some_failed_pod'
If the parsing for a particular POD fails, the POD is appended to a bad_pods
list but no warning is given. This makes troubleshooting difficult
MDTF-diagnostics/src/mdtf_info.py
Lines 48 to 54 in 70622b2
@wrongkindofdoctor, @tsjackson-noaa -- any thoughts on this?