Skip to content

Commit

Permalink
Merge pull request #2490 from Ennovate-com/fix/KeyError
Browse files Browse the repository at this point in the history
Issue #2488 KeyError raised when Subject ID is not a URI
  • Loading branch information
dbluhm authored Sep 14, 2023
2 parents 09b874e + 4aee9bd commit 9e7e74a
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 9e7e74a

Please sign in to comment.