Skip to content

Commit

Permalink
fix 0 balance
Browse files Browse the repository at this point in the history
  • Loading branch information
lollerfirst committed Nov 5, 2024
1 parent 21adb17 commit 048a435
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cashu/mint/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,9 @@ async def get_balance(
"keyset": keyset.id,
}
)
assert row, "Balance not found"

if row is None:
return 0

# sqlalchemy index of first element
key = next(iter(row))
Expand Down

0 comments on commit 048a435

Please sign in to comment.