chore: deduplicate the list of extensions
This commit is contained in:
parent
c5e3ab4854
commit
74f41bdc1e
1 changed files with 3 additions and 0 deletions
|
|
@ -1701,6 +1701,9 @@ class MarkItDown:
|
|||
def _convert(
|
||||
self, local_path: str, extensions: List[Union[str, None]], **kwargs
|
||||
) -> DocumentConverterResult:
|
||||
# Deduplicate the list of extensions
|
||||
extensions = list(set(extensions))
|
||||
|
||||
error_trace = ""
|
||||
for ext in extensions + [None]: # Try last with no extension
|
||||
for converter in self._page_converters:
|
||||
|
|
|
|||
Loading…
Reference in a new issue