Skip to content

Commit 329b83c

Browse files
Fix on_error Callbacks (#1526)
1 parent 9836643 commit 329b83c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "patch",
3+
"description": "Fix exception on error callbacks"
4+
}

graphrag/index/run/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ async def run_pipeline(
276276
await _dump_stats(context.stats, context.storage)
277277
except Exception as e:
278278
log.exception("error running workflow %s", last_workflow)
279-
cast("WorkflowCallbacks", callbacks).on_error(
279+
cast("WorkflowCallbacks", callback_chain).on_error(
280280
"Error running pipeline!", e, traceback.format_exc()
281281
)
282282
yield PipelineRunResult(last_workflow, None, [e])

0 commit comments

Comments
 (0)