From 7d24e8fb2340a6c25c6f5a0603e48945bb2d2572 Mon Sep 17 00:00:00 2001 From: Lance Date: Wed, 29 May 2024 16:40:26 -0400 Subject: [PATCH] fixes MissingDelegableApprovalError logging bug (#789) Signed-off-by: 2byrds <2byrds@gmail.com> --- src/keri/core/eventing.py | 2 +- tests/core/test_delegating.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/keri/core/eventing.py b/src/keri/core/eventing.py index 53a59ea1b..6b4e743f5 100644 --- a/src/keri/core/eventing.py +++ b/src/keri/core/eventing.py @@ -5806,7 +5806,7 @@ def processEscrowDelegables(self): self.processEvent(serder=eserder, sigers=sigers, wigers=wigers, delseqner=seqner, delsaider=saider, local=esr.local) else: - raise MissingDelegableApprovalError() + raise MissingDelegableApprovalError("No delegation seal found for event.") except MissingDelegableApprovalError as ex: # still waiting on missing delegation approval diff --git a/tests/core/test_delegating.py b/tests/core/test_delegating.py index 59f4cbecd..0c05f27c8 100644 --- a/tests/core/test_delegating.py +++ b/tests/core/test_delegating.py @@ -739,6 +739,8 @@ def test_delegables_escrow(): parsing.Parser().parse(ims=bytearray(gateIcp), kvy=torKvy, local=True) assert gateHab.pre not in torKvy.kevers assert len(torHab.db.delegables.get(keys=snKey(gateHab.kever.serder.preb, gateHab.kever.serder.sn))) == 1 + # Exercise the MissingDelegableApprovalError case + torKvy.processEscrowDelegables() # Now create delegating interaction event seal = eventing.SealEvent(i=gateHab.pre,