From 6221ae4d387f73cc968cd0cb326e1ea39bd9f514 Mon Sep 17 00:00:00 2001 From: Joe <1264204425@qq.com> Date: Thu, 12 Sep 2024 17:08:02 +0800 Subject: [PATCH] chore: noqa S701 chore: noqa S701 chore: noqa S701 --- api/core/rag/extractor/word_extractor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/rag/extractor/word_extractor.py b/api/core/rag/extractor/word_extractor.py index 79a24ec212..5d65efd538 100644 --- a/api/core/rag/extractor/word_extractor.py +++ b/api/core/rag/extractor/word_extractor.py @@ -49,7 +49,7 @@ class WordExtractor(BaseExtractor): self.web_path = self.file_path # TODO: use a better way to handle the file - self.temp_file = tempfile.NamedTemporaryFile() + self.temp_file = tempfile.NamedTemporaryFile() # S701 self.temp_file.write(r.content) self.file_path = self.temp_file.name elif not os.path.isfile(self.file_path):