Skip to content

Commit

Permalink
chore(api): Ignore a linter warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
laipz8200 committed Sep 26, 2024
1 parent c5e6b06 commit 45c1d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/rag/extractor/word_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, file_path: str, tenant_id: str, user_id: str):

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() # noqa: SIM115
self.temp_file.write(r.content)
self.file_path = self.temp_file.name
elif not os.path.isfile(self.file_path):
Expand Down

0 comments on commit 45c1d75

Please sign in to comment.