Skip to content

Commit

Permalink
Ensure loop continues when metadata isn't found
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-spencer committed Feb 13, 2025
1 parent c6bfdb8 commit ddae5b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/simple_sign/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ def _retrieve_metadata(self, tag: str, tx_list: list[ValidTx]):
try:
_ = md_dict[0]["schema"][tag]
except (IndexError, KeyError):
return md_list
# If there is no metadata, we continue. If we find it
# we can continue to augment the structure.
continue
md_dict[0]["address"] = tx.address
md_dict[0]["staking"] = tx.staking
md_dict[0]["transaction"] = tx.tx_id
Expand Down

0 comments on commit ddae5b9

Please sign in to comment.