Skip to content

Commit

Permalink
🐛 Fix logic error in fix-calamari1-model
Browse files Browse the repository at this point in the history
An earlier change changed comparing types to using isinstance() but got the logic wrong.
Correct it.
  • Loading branch information
mikegerber committed Oct 19, 2023
1 parent ca5a95d commit a1aa6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocrd_calamari/fix_calamari1_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def fix_calamari1_model(checkpoint_dir):
old_j = deepcopy(j)

for v in j["model"].values():
if isinstance(v, dict):
if not isinstance(v, dict):
continue
for child in v.get("children", []):
for replacement in child.get("replacements", []):
Expand Down

0 comments on commit a1aa6ab

Please sign in to comment.