mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 14:49:29 +00:00
community[patch]: GCSDirectoryLoader bugfix (#20005)
- **Description:** Bug fix. Removed extra line in `GCSDirectoryLoader` to allow catching Exceptions. Now also logs the file path if Exception is raised for easier debugging. - **Issue:** #20198 Bug since langchain-community==0.0.31 - **Dependencies:** No change - **Twitter handle:** timothywong731 --------- Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
parent
ac42e96e4c
commit
0c848a25ad
@ -65,10 +65,6 @@ class GCSDirectoryLoader(BaseLoader):
|
||||
# intermediate directories on the fly
|
||||
if blob.name.endswith("/"):
|
||||
continue
|
||||
loader = GCSFileLoader(
|
||||
self.project_name, self.bucket, blob.name, loader_func=self._loader_func
|
||||
)
|
||||
docs.extend(loader.load())
|
||||
# Use the try-except block here
|
||||
try:
|
||||
loader = GCSFileLoader(
|
||||
|
Loading…
Reference in New Issue
Block a user