Skip to content

Commit c3bd225

Browse files
author
balogh.adam@icloud.com
committed
sanity check
1 parent 2c42b02 commit c3bd225

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/opengradient/client/opg_token.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ def ensure_opg_allowance(
177177
was needed).
178178
179179
Raises:
180-
ValueError: If ``approve_amount`` is less than ``min_allowance``.
180+
ValueError: If ``approve_amount`` is less than ``min_allowance``,
181+
or if the wallet has zero OPG balance.
181182
RuntimeError: If the approval transaction fails.
182183
"""
183184
if approve_amount is None:

0 commit comments

Comments
 (0)