Skip to content

Commit

Permalink
Fix uppercase extension in suffix - font attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
pandamoon21 committed May 11, 2024
1 parent f419e04 commit eb6c2de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devine/core/tracks/attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(
mime_type = {
".ttf": "application/x-truetype-font",
".otf": "application/vnd.ms-opentype"
}.get(path.suffix, mimetypes.guess_type(path)[0])
}.get(path.suffix.lower(), mimetypes.guess_type(path)[0])
if not mime_type:
raise ValueError("The attachment mime-type could not be automatically detected.")

Expand Down

0 comments on commit eb6c2de

Please sign in to comment.