Skip to content

Commit

Permalink
Font Validator: Actually ignore non-font attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
Myaamori committed Jun 10, 2021
1 parent 3248b16 commit f2a52ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/fontvalidator/fontvalidator.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ def get_fonts(mkv):
for attachment in get_dicts(attachments, "AttachedFile"):
if attachment["FileMimeType"].value not in FONT_MIMETYPES:
print(f"Ignoring non-font attachment {attachment['FileName'].value}")
continue

fonts.append((attachment["FileName"].value,
io.BytesIO(attachment["FileData"].value)))
Expand Down

0 comments on commit f2a52ee

Please sign in to comment.