Skip to content

Commit

Permalink
fix: KeyError
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Simpson <[email protected]>
  • Loading branch information
Robert Simpson authored and Robert Simpson committed Sep 10, 2023
1 parent dd8059f commit fcdaa03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aries_cloudagent/messaging/valid.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,10 +750,10 @@ def __call__(self, value):
if "id" in subject:
uri_validator = Uri()
try:
uri_validator(value["id"])
uri_validator(subject["id"])
except ValidationError:
raise ValidationError(
f"credential subject id {value[0]} must be URI"
f'credential subject id {subject["id"]} must be URI'
) from None

return value
Expand Down

0 comments on commit fcdaa03

Please sign in to comment.