Skip to content

Commit

Permalink
use lower() to match upper file extension name (#2069)
Browse files Browse the repository at this point in the history
  • Loading branch information
BetterAndBetterII authored Oct 23, 2024
1 parent a79fe57 commit fa85034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/backend/prepdocslib/filestrategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async def parse_file(
category: Optional[str] = None,
image_embeddings: Optional[ImageEmbeddings] = None,
) -> List[Section]:
key = file.file_extension()
key = file.file_extension().lower()
processor = file_processors.get(key)
if processor is None:
logger.info("Skipping '%s', no parser found.", file.filename())
Expand Down

0 comments on commit fa85034

Please sign in to comment.