Skip to content

Commit 63d1eef

Browse files
committed
Add read_only=True for xlsx parsing
1 parent e338677 commit 63d1eef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/danswer/file_processing/extract_file_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def pptx_to_text(file: IO[Any]) -> str:
295295

296296

297297
def xlsx_to_text(file: IO[Any]) -> str:
298-
workbook = openpyxl.load_workbook(file)
298+
workbook = openpyxl.load_workbook(file, read_only=True)
299299
text_content = []
300300
for sheet in workbook.worksheets:
301301
sheet_string = "\n".join(

0 commit comments

Comments
 (0)