Skip to content

Commit afb4e21

Browse files
fix(core): add dict type guard for markdown yaml metadata
1 parent a8f8b2b commit afb4e21

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/edit_python_pe/markdown_builder.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ def load_file_into_form(
8484
except Exception:
8585
yaml_data = {}
8686

87+
if not isinstance(yaml_data, dict):
88+
yaml_data = {}
89+
8790
screen.name_input.value = yaml_data.get("author", "")
8891
screen.city_input.value = yaml_data.get("location", "")
8992

0 commit comments

Comments
 (0)