Skip to content

Commit 7864c10

Browse files
Update bittensor/utils/balance.py
I have an entry for SDK v.10 to make error messages more informative. I don't want the user to have to double-check themselves to figure out what the error is. Co-authored-by: BD Himes <[email protected]>
1 parent 8349725 commit 7864c10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bittensor/utils/balance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __init__(self, balance: Union[int, float]):
6969
self.rao = int(balance * pow(10, 9))
7070
else:
7171
raise TypeError(
72-
f"Balance must be an int (rao) or a float (tao). You passed: `{type(balance)}`."
72+
f"Balance must be an int (rao) or a float (tao), not `{type(balance)}`."
7373
)
7474

7575
@property

0 commit comments

Comments
 (0)