From c3bd085d57d3f390fab8461cce3db4c9f34870da Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 10 Apr 2026 17:24:18 +0800 Subject: [PATCH] bugfix --- llmage/accounting.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/llmage/accounting.py b/llmage/accounting.py index b8cdddb..ade3847 100644 --- a/llmage/accounting.py +++ b/llmage/accounting.py @@ -170,7 +170,10 @@ where a.llmid = b.id # debug(f'{sql=}, {ns=}, {len(recs)=}') for r in recs: if r.usages is None: - output = await get_lastoutput(r.ioinfo) + try: + output = await get_lastoutput(r.ioinfo) + except Exception as e: + continue r.usages = output.get('usage') if r.usages is None: llmusage.accounting_status = 'failed'