Skip to content

Commit

Permalink
k
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhongsun96 committed Sep 29, 2024
1 parent b6929de commit e83b70f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/danswer/connectors/file/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _process_file(
)

# Using the PDF reader function directly to pass in password cleanly
elif extension == ".pdf" and pdf_pass:
elif extension == ".pdf" and pdf_pass is not None:
file_content_raw, file_metadata = read_pdf_file(file=file, pdf_pass=pdf_pass)

else:
Expand Down

0 comments on commit e83b70f

Please sign in to comment.