mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-13 10:09:01 +08:00
fix callback function error (#2096)
### What problem does this PR solve? #2085 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
e9202999cb
commit
c3e344b0f1
@ -131,7 +131,7 @@ class GraphExtractor:
|
||||
total_token_count += token_count
|
||||
if callback: callback(msg=f"{doc_index+1}/{total}, elapsed: {timer() - st}s, used tokens: {total_token_count}")
|
||||
except Exception as e:
|
||||
if callback: callback("Knowledge graph extraction error:{}".format(str(e)))
|
||||
if callback: callback(msg="Knowledge graph extraction error:{}".format(str(e)))
|
||||
logging.exception("error extracting graph")
|
||||
self._on_error(
|
||||
e,
|
||||
|
Loading…
x
Reference in New Issue
Block a user