Skip to content

Commit

Permalink
Fix list changed during iteration error
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiesel committed Jul 23, 2024
1 parent 33559cd commit 25e0abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migaku_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_migaku_fields(nt: anki.models.NoteType):
if field_name not in data:
data[field_name] = infer_migaku_type(field_name)

for field_name in data.keys():
for field_name in list(data.keys()):
if field_name not in field_names:
del data[field_name]

Expand Down

0 comments on commit 25e0abe

Please sign in to comment.