From ad1f059604861dc0d9fff20ffcc157e09010f4f4 Mon Sep 17 00:00:00 2001 From: Matt Hauff Date: Fri, 2 Jun 2023 15:54:31 -0700 Subject: [PATCH] Fix vcs get command when no proofs exist yet (#15432) --- chia/cmds/wallet_funcs.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/chia/cmds/wallet_funcs.py b/chia/cmds/wallet_funcs.py index 2fbb174639e2..0c8d9e2f30a4 100644 --- a/chia/cmds/wallet_funcs.py +++ b/chia/cmds/wallet_funcs.py @@ -1312,9 +1312,10 @@ async def get_vcs(args: Dict, wallet_client: WalletRpcClient, fingerprint: int) vc_records, proofs = await wallet_client.vc_get_list(args["start"], args["count"]) print("Proofs:") for hash, proof_dict in proofs.items(): - print(f"- {hash}") - for proof in proof_dict: - print(f" - {proof}") + if proof_dict is not None: + print(f"- {hash}") + for proof in proof_dict: + print(f" - {proof}") for record in vc_records: print("") print(f"Launcher ID: {record.vc.launcher_id.hex()}")