diff --git a/llmpa/fileparser/mimetype.py b/llmpa/fileparser/mimetype.py index 35614f5..7dd5070 100644 --- a/llmpa/fileparser/mimetype.py +++ b/llmpa/fileparser/mimetype.py @@ -36,7 +36,7 @@ "font/woff": "Web Open Font Format", # woff } -supported_mimetypes_names = mimetypes_names +supported_mimetypes = mimetypes_names.keys() def _detect(filepath: str, follow_symlinks: bool = True) -> str: @@ -51,7 +51,7 @@ def _detect(filepath: str, follow_symlinks: bool = True) -> str: def detect(filepath: str, follow_symlinks: bool = True) -> str: mimetype = _detect(filepath, follow_symlinks) - return mimetype if mimetype in supported_mimetypes_names else None + return mimetype if mimetype in supported_mimetypes else None def main():