Skip to content

Commit 1ea2ad8

Browse files
fix: refactoring of fetch_node qixed error
1 parent 29ad140 commit 1ea2ad8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scrapegraphai/nodes/fetch_node.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,12 @@ def execute(self, state):
120120
if input_type in handlers:
121121
return handlers[input_type](state, input_type, source)
122122
elif self.input == "pdf_dir":
123-
pass
123+
return state
124124
elif not source.startswith("http"):
125125
return self.handle_local_source(state, source)
126126
else:
127127
return self.handle_web_source(state, source)
128128

129-
130129
def handle_directory(self, state, input_type, source):
131130
"""
132131
Handles the directory by compressing the source document and updating the state.

0 commit comments

Comments
 (0)