From 1ea2ad8e79e9777c60f86565ed4930ee46e1ca53 Mon Sep 17 00:00:00 2001 From: Matteo Vedovati Date: Wed, 7 Aug 2024 12:04:54 +0200 Subject: [PATCH] fix: refactoring of fetch_node qixed error --- scrapegraphai/nodes/fetch_node.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scrapegraphai/nodes/fetch_node.py b/scrapegraphai/nodes/fetch_node.py index 4fbb42a9..02d2c946 100644 --- a/scrapegraphai/nodes/fetch_node.py +++ b/scrapegraphai/nodes/fetch_node.py @@ -120,13 +120,12 @@ class FetchNode(BaseNode): if input_type in handlers: return handlers[input_type](state, input_type, source) elif self.input == "pdf_dir": - pass + return state elif not source.startswith("http"): return self.handle_local_source(state, source) else: return self.handle_web_source(state, source) - def handle_directory(self, state, input_type, source): """ Handles the directory by compressing the source document and updating the state.