Skip to content

Commit fa85034

Browse files
use lower() to match upper file extension name (#2069)
1 parent a79fe57 commit fa85034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/backend/prepdocslib/filestrategy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async def parse_file(
1717
category: Optional[str] = None,
1818
image_embeddings: Optional[ImageEmbeddings] = None,
1919
) -> List[Section]:
20-
key = file.file_extension()
20+
key = file.file_extension().lower()
2121
processor = file_processors.get(key)
2222
if processor is None:
2323
logger.info("Skipping '%s', no parser found.", file.filename())

0 commit comments

Comments
 (0)