mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 01:56:02 +08:00
make sure the error will be recorded. (#672)
### What problem does this PR solve? ### Type of change - [x] Refactoring
This commit is contained in:
parent
48607c3cfb
commit
c28f7b5d38
@ -254,8 +254,8 @@ def main():
|
|||||||
try:
|
try:
|
||||||
embd_mdl = LLMBundle(r["tenant_id"], LLMType.EMBEDDING, llm_name=r["embd_id"], lang=r["language"])
|
embd_mdl = LLMBundle(r["tenant_id"], LLMType.EMBEDDING, llm_name=r["embd_id"], lang=r["language"])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
traceback.print_stack(e)
|
callback(-1, msg=str(e))
|
||||||
callback(prog=-1, msg=str(e))
|
cron_logger.error(str(e))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
st = timer()
|
st = timer()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user