We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7866266 commit eb9a673Copy full SHA for eb9a673
1 file changed
pyhilo/util/state.py
@@ -136,7 +136,7 @@ async def get_state(state_yaml: str) -> StateDict:
136
state_yaml_payload: StateDict | None = yaml.safe_load(content)
137
138
# Handle corrupted/empty YAML files
139
- if state_yaml_payload is None:
+ if state_yaml_payload is None or not isinstance(state_yaml_payload, dict):
140
LOG.warning(
141
"State file %s is corrupted or empty, reinitializing with defaults",
142
state_yaml,
0 commit comments