Skip to content

Commit

Permalink
make sure the error will be recorded. (infiniflow#672)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?


### Type of change

- [x] Refactoring
  • Loading branch information
KevinHuSh committed May 8, 2024
1 parent 48607c3 commit c28f7b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rag/svr/task_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ def main():
try:
embd_mdl = LLMBundle(r["tenant_id"], LLMType.EMBEDDING, llm_name=r["embd_id"], lang=r["language"])
except Exception as e:
traceback.print_stack(e)
callback(prog=-1, msg=str(e))
callback(-1, msg=str(e))
cron_logger.error(str(e))
continue

st = timer()
Expand Down

0 comments on commit c28f7b5

Please sign in to comment.