Improve the detection of unsupported extensions in uppercase
This commit is contained in:
parent
f068621628
commit
1c72448e58
@ -36,7 +36,7 @@ def get_parser(filename: str) -> Tuple[Optional[T], Optional[str]]:
|
|||||||
mtype, _ = mimetypes.guess_type(filename)
|
mtype, _ = mimetypes.guess_type(filename)
|
||||||
|
|
||||||
_, extension = os.path.splitext(filename)
|
_, extension = os.path.splitext(filename)
|
||||||
if extension in UNSUPPORTED_EXTENSIONS:
|
if extension.lower() in UNSUPPORTED_EXTENSIONS:
|
||||||
return None, mtype
|
return None, mtype
|
||||||
|
|
||||||
for parser_class in _get_parsers(): # type: ignore
|
for parser_class in _get_parsers(): # type: ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user