Added missing None check - thanks linter!

This commit is contained in:
Geoff Taylor 2022-03-02 19:32:28 +00:00
parent 49c4353eb2
commit 6d401a3966
1 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,8 @@ with mango.ContextBuilder.from_command_line_parameters(args) as context:
mango.output(mango.indent_collection_as_str(results, 1))
updated = mango.TokenAccount.load(context, source.address)
mango.output(f"{text_amount} sent. Balance now: {updated.value}")
updated_value = updated.value if updated is not None else "Unknown"
mango.output(f"{text_amount} sent. Balance now: {updated_value}")
else:
mango.output("Transaction signatures:")
mango.output(mango.indent_collection_as_str(signatures, 1))