Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catching socket exception when creating witness http client #723

Merged
merged 2 commits into from
Mar 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading