make sure the error will be recorded. (#672)

### What problem does this PR solve?


### Type of change

- [x] Refactoring
This commit is contained in:
KevinHuSh 2024-05-08 13:58:41 +08:00 committed by GitHub
parent 48607c3cfb
commit c28f7b5d38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()