Skip to content

Commit

Permalink
zimfile: fix possible NameError
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Dec 22, 2024
1 parent 38b3a01 commit aa2a335
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyglossary/plugins/zimfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def __iter__(self) -> Iterator[EntryType | None]: # noqa: PLR0912
mimetype = zItem.mimetype
except RuntimeError:
invalidMimeTypeCount += 1
mimetype = ""
yield glos.newDataEntry(word, b_content)

if mimetype == "undefined":
Expand Down

0 comments on commit aa2a335

Please sign in to comment.