Skip to content

Commit

Permalink
zim: fix Files with name too long log
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Dec 12, 2024
1 parent 4b3f0b0 commit 04f8863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyglossary/plugins/zimfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ def __iter__(self) -> Iterator[EntryType | None]: # noqa: PLR0912

log.info(f"ZIM Entry Count: {entryCount}")

if not fileNameTooLong:
log.error(f"Files with name too long: {len(fileNameTooLong)}")
if fileNameTooLong:
log.warning(f"Files with name too long: {len(fileNameTooLong)}")

if emptyContentCount > 0:
log.info(f"Empty Content Count: {emptyContentCount}")
Expand Down

0 comments on commit 04f8863

Please sign in to comment.