This commit is contained in:
David Kennedy 2025-03-24 17:28:39 -04:00
parent 39f577c1b4
commit 681963343a
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
3 changed files with 5 additions and 4 deletions

View file

@ -184,7 +184,9 @@ class EPPLibWrapper:
message = f"{cmd_type} failed and will be retried"
info_message = f"{message} Error: {err}"
if err.response:
info_message = f"{info_message}| cltrid is {err.response.cl_tr_id} svtrid is {err.response.sv_tr_id}"
info_message = (
f"{info_message}| cltrid is {err.response.cl_tr_id} svtrid is {err.response.sv_tr_id}"
)
logger.info(f"{info_message}")
return self._retry(command)
else:

View file

@ -69,7 +69,6 @@ class RegistryError(Exception):
# note is a string that can be used to provide additional context
self.note = note
def should_retry(self):
# COMMAND_USE_ERROR is returning with message, Registrar is not logged in,
# which can be recovered from with a retry

View file

@ -310,10 +310,10 @@ class TestClient(TestCase):
mock_close.assert_called_once()
# send() is called 5 times: send(login), send(command) fail, send(logout), send(login), send(command)
self.assertEquals(mock_send.call_count, 5)
# Assertion proper logging; note that the
# Assertion proper logging; note that the
mock_logger.info.assert_called_once_with(
"InfoDomainCommand failed and will be retried Error: Registrar is not logging in.| cltrid is cl_tr_id svtrid is sv_tr_id"
)
)
@less_console_noise_decorator
def fake_failure_send_concurrent_threads(self, command=None, cleaned=None):