Skip to content

Commit

Permalink
AppleDict: fix empty CFBundleIdentifier, #567
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Jun 16, 2024
1 parent 656428d commit 491acc4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyglossary/plugins/appledict/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,9 @@ def write(self) -> "Generator[None, EntryType, None]": # noqa: PLR0912
if front_back_matter
else ""
)
if glos.getInfo("CFBundleIdentifier") is None:
bundle_id = glos.getInfo("CFBundleIdentifier")
if not bundle_id:
bundle_id = fileNameBase.replace(" ", "")
else:
bundle_id = glos.getInfo("CFBundleIdentifier")
toFile.write(
toStr(
pkgutil.get_data(
Expand Down

0 comments on commit 491acc4

Please sign in to comment.