update cursor rule
This commit is contained in:
parent
76f813fb18
commit
5855a377e2
|
|
@ -715,7 +715,7 @@ class RetryNode(Node):
|
|||
To **gracefully handle** the exception (after all retries) rather than raising it, override:
|
||||
|
||||
```python
|
||||
def exec_fallback(self, shared, prep_res, exc):
|
||||
def exec_fallback(self, prep_res, exc):
|
||||
raise exc
|
||||
```
|
||||
|
||||
|
|
@ -735,7 +735,7 @@ class SummarizeFile(Node):
|
|||
summary = call_llm(prompt) # might fail
|
||||
return summary
|
||||
|
||||
def exec_fallback(self, shared, prep_res, exc):
|
||||
def exec_fallback(self, prep_res, exc):
|
||||
# Provide a simple fallback instead of crashing
|
||||
return "There was an error processing your request."
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue