We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 67038e1 + e2caee6 commit abf39b5Copy full SHA for abf39b5
scrapegraphai/nodes/fetch_node.py
@@ -131,12 +131,13 @@ def execute(self, state):
131
return state
132
133
# For web sources, validate URL before proceeding
134
- try:
135
- if self.is_valid_url(source):
136
- return self.handle_web_source(state, source)
137
- except ValueError as e:
138
- # Re-raise the exception from is_valid_url
139
- raise
+ if input_type == "url":
+ try:
+ if self.is_valid_url(source):
+ return self.handle_web_source(state, source)
+ except ValueError as e:
+ # Re-raise the exception from is_valid_url
140
+ raise
141
142
return self.handle_local_source(state, source)
143
0 commit comments