have a exceptions when try to get a acount balance use a tronpy exception: tronpy.exceptions.AddressNotFound: account not found on-chain
have this problem with a new wallet and with a just adress from tronscan
code to create account
tron = Tron()
def create_wallet():
wallet = tron.generate_address()
return wallet
code to get account balance
def get_balance(address):
balance = tron.get_account_balance(address)
return balance
balance = get_balance(wallet['base58check_address'])
print("Balance:", balance)