MCPcopy Create free account
hub / github.com/The-Pocket/PocketFlow-Tutorial-Website-Chatbot / exec_fallback

Method exec_fallback

nodes.py:26–30  ·  view source on GitHub ↗

Fallback when crawling fails. The 'None' for links signals a failure.

(self, url_data, exc)

Source from the content-addressed store, hash-verified

24 return url_idx, content, links
25
26 def exec_fallback(self, url_data, exc):
27 """Fallback when crawling fails. The 'None' for links signals a failure."""
28 url_idx, url = url_data
29 print(f"Error crawling {url}: {exc}")
30 return url_idx, f"Error crawling page", None # Return None for links
31
32 def post(self, shared, prep_res, exec_res_list):
33 """Store results and update URL tracking"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected