Skip to content

Commit

Permalink
fix: add back in UnverifiedReplyError just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
iFergal committed Jan 6, 2025
1 parent ad9a8c1 commit bf87c02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/keria/app/aiding.py
Original file line number Diff line number Diff line change
Expand Up @@ -1330,8 +1330,8 @@ def on_post(req, rep, name, aid=None, role=None):
)
try:
agent.hby.rvy.processReply(rserder, tsgs=[tsg])
except kering.ValidationError:
raise falcon.HTTPBadRequest(description="invalid signatures for given end role reply message")
except (kering.UnverifiedReplyError, kering.ValidationError):
raise falcon.HTTPBadRequest(description="unable to verify end role reply message")

oid = ".".join([pre, role, eid])
op = agent.monitor.submit(
Expand Down
2 changes: 1 addition & 1 deletion tests/app/test_aiding.py
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ def test_oobi_ends(helpers):
body = dict(rpy=rpy.ked, sigs=sigs)
res = client.simulate_post(path=f"/identifiers/pal/endroles", json=body)
assert res.status_code == 400
assert res.json == {'description': "invalid signatures for given end role reply message",
assert res.json == {'description': "unable to verify end role reply message",
'title': '400 Bad Request'}

# now with correct
Expand Down

0 comments on commit bf87c02

Please sign in to comment.