fix: refactoring of fetch_node qixed error

This commit is contained in:
Matteo Vedovati 2024-08-07 12:04:54 +02:00
parent 29ad140fa3
commit 1ea2ad8e79

View File

@ -120,13 +120,12 @@ class FetchNode(BaseNode):
if input_type in handlers: if input_type in handlers:
return handlers[input_type](state, input_type, source) return handlers[input_type](state, input_type, source)
elif self.input == "pdf_dir": elif self.input == "pdf_dir":
pass return state
elif not source.startswith("http"): elif not source.startswith("http"):
return self.handle_local_source(state, source) return self.handle_local_source(state, source)
else: else:
return self.handle_web_source(state, source) return self.handle_web_source(state, source)
def handle_directory(self, state, input_type, source): def handle_directory(self, state, input_type, source):
""" """
Handles the directory by compressing the source document and updating the state. Handles the directory by compressing the source document and updating the state.