From 9c2b29a1cbb6150a575f72ae7aa1eac0f28bac05 Mon Sep 17 00:00:00 2001 From: Harrison Chase Date: Tue, 1 Aug 2023 13:31:49 -0700 Subject: [PATCH] Harrison/loader bug (#8559) Co-authored-by: ddroghini Co-authored-by: Buckler89 --- libs/langchain/langchain/document_loaders/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain/langchain/document_loaders/text.py b/libs/langchain/langchain/document_loaders/text.py index 2b48115d89..e148e1d4ee 100644 --- a/libs/langchain/langchain/document_loaders/text.py +++ b/libs/langchain/langchain/document_loaders/text.py @@ -43,7 +43,7 @@ class TextLoader(BaseLoader): if self.autodetect_encoding: detected_encodings = detect_file_encodings(self.file_path) for encoding in detected_encodings: - logger.debug("Trying encoding: ", encoding.encoding) + logger.debug(f"Trying encoding: {encoding.encoding}") try: with open(self.file_path, encoding=encoding.encoding) as f: text = f.read()