mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
Harrison/loader bug (#8559)
Co-authored-by: ddroghini <d.droghini@mflgroup.com> Co-authored-by: Buckler89 <Droghini.diego@gmail.com>
This commit is contained in:
parent
f190bc3e83
commit
9c2b29a1cb
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user