Skip to content

Commit 6e4d044

Browse files
committed
Update base_graph.py
1 parent 48f07e7 commit 6e4d044

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scrapegraphai/graphs/base_graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ def _execute_standard(self, initial_state: dict) -> Tuple[dict, list]:
157157
embedder_model = embedder_model.model
158158

159159
if hasattr(current_node, "node_config"):
160-
if type(current_node.node_config) is dict:
160+
if isinstance(current_node.node_config,dict):
161161
if current_node.node_config.get("schema", None) and schema is None:
162-
if type(current_node.node_config["schema"]) is not dict:
162+
if not isinstance(current_node.node_config["schema"], dict):
163163
# convert to dict
164164
try:
165165
schema = current_node.node_config["schema"].schema()

0 commit comments

Comments
 (0)