Skip to content

Commit 2f18f03

Browse files
committed
bugfix
1 parent 60e74ea commit 2f18f03

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mytonctrl/mytonctrl.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,10 @@ def check_sync(local, ton):
464464
def check_validator_balance(local, ton):
465465
if ton.using_validator():
466466
validator_wallet = ton.GetValidatorWallet()
467-
validator_account = ton.GetAccount(validator_wallet.addrB64)
467+
validator_account = local.try_function(ton.GetAccount, args=[validator_wallet.addrB64])
468+
if validator_account is None:
469+
local.add_log(f"Failed to check validator wallet balance", "warning")
470+
return
468471
if validator_account.balance < 100:
469472
print_warning(local, "validator_balance_warning")
470473
#end define

0 commit comments

Comments
 (0)