Skip to content

Commit

Permalink
Catching socket exception when creating witness http client (WebOfTru…
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolfomiranda authored Mar 26, 2024
1 parent 4999b70 commit 11e051c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/keri/app/agenting.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
from hio.core.tcp import clienting
from hio.help import decking, Hict

from socket import gaierror

from . import httping, forwarding
from .. import help
from .. import kering
Expand Down Expand Up @@ -74,10 +76,13 @@ def receipt(self, pre, sn=None):
clients = dict()
doers = []
for wit in wits:
client, clientDoer = httpClient(hab, wit)
clients[wit] = client
doers.append(clientDoer)
self.extend([clientDoer])
try:
client, clientDoer = httpClient(hab, wit)
clients[wit] = client
doers.append(clientDoer)
self.extend([clientDoer])
except (kering.MissingEntryError, gaierror) as e:
logger.error(f"unable to create http client for witness {wit}: {e}")

rcts = dict()
for wit, client in clients.items():
Expand Down

0 comments on commit 11e051c

Please sign in to comment.