Skip to content

Commit 3f45c17

Browse files
committed
fix: fetch_node condition
1 parent c717bb6 commit 3f45c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scrapegraphai/nodes/fetch_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def handle_web_source(self, state, source):
257257
parsed_content = cleanup_html(response, source)
258258

259259
if isinstance(self.llm_model, (ChatOpenAI, AzureChatOpenAI)) \
260-
and not self.script_creator) or (self.force and not self.script_creator):
260+
and not self.script_creator or (self.force and not self.script_creator):
261261
parsed_content = convert_to_md(source, parsed_content)
262262

263263
compressed_document = [Document(page_content=parsed_content)]

0 commit comments

Comments
 (0)