Skip to content

Commit 67751d6

Browse files
authored
Merge pull request #13 from javihernandez/bs-443
Retry upon 'Socket closed' exceptions
2 parents e8ceaa2 + 1763d22 commit 67751d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

immudb_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def verified_set(
347347
except RpcError:
348348
return {'error': format_exc()}
349349

350-
@retry(possible_exc_details=['Connection timed out'])
350+
@retry(possible_exc_details=['Connection timed out', 'Socket closed'])
351351
def notarize(
352352
self,
353353
key: str,
@@ -420,7 +420,7 @@ def notarize_git_repo(
420420
value=payload,
421421
)
422422

423-
@retry(possible_exc_details=['Connection timed out'])
423+
@retry(possible_exc_details=['Connection timed out', 'Socket closed'])
424424
def authenticate(
425425
self,
426426
key: Union[str, bytes],

0 commit comments

Comments
 (0)