From efcf922e5b03cdf34233e73ba290da469522ffee Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 6 Jan 2026 13:33:17 +0800 Subject: [PATCH] bugfix --- llmage/accounting.py | 1 + 1 file changed, 1 insertion(+) diff --git a/llmage/accounting.py b/llmage/accounting.py index a739804..a30ba9c 100644 --- a/llmage/accounting.py +++ b/llmage/accounting.py @@ -18,6 +18,7 @@ async def checkCustomerBalance(llmid, userorgid): if llms[0].ownerid == userorgid: return True balance = await getCustomerBalance(sor, userorgid) + if balance is None: balance = 0.00 return llms[0].ppid and llms[0].min_balance < balance return False