Skip to content

Commit

Permalink
Fix 2 exception cases that were incorrectly letting exceptions leak o…
Browse files Browse the repository at this point in the history
…ut of Doers and causing crashes. (WebOfTrust#658)

Signed-off-by: pfeairheller <[email protected]>
  • Loading branch information
pfeairheller authored Jan 12, 2024
1 parent 2b96010 commit 626aae9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/keri/app/agenting.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,10 @@ def msgDo(self, tymth=None, tock=1.0, **opts):
continue

ctrl, locs = random.choice(list(end.items()))
if len(locs.items()) == 0:
logger.error(f"must have location in endpoint to query for pre={pre}")
continue

witer = messengerFrom(hab=hab, pre=ctrl, urls=locs)
else:
wit = random.choice(wits)
Expand Down
4 changes: 2 additions & 2 deletions src/keri/vdr/verifying.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ def _processEscrow(self, db, timeout, etype: Type[Exception]):
if (dtnow - dte) > datetime.timedelta(seconds=timeout):
# escrow stale so raise ValidationError which unescrows below
logger.info("Verifier unescrow error: Stale event escrow "
" at said = %s\n", bytes(said))
" at said = %s\n", said)

raise kering.ValidationError("Stale event escrow "
"at said = {}.".format(bytes(said)))
"at said = {}.".format(said))

self.processCredential(creder, prefixer, seqner, saider)

Expand Down

0 comments on commit 626aae9

Please sign in to comment.