mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-03 09:43:33 +02:00
Update client.py
This commit is contained in:
parent
70bfd4343e
commit
5cfd6193fd
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,6 @@ class EPPLibWrapper:
|
||||||
"""Initialize a client, assuming _login defined. Sets _client to initialized
|
"""Initialize a client, assuming _login defined. Sets _client to initialized
|
||||||
client. Raises errors if initialization fails.
|
client. Raises errors if initialization fails.
|
||||||
This method will be called at app initialization, and also during retries."""
|
This method will be called at app initialization, and also during retries."""
|
||||||
|
|
||||||
# establish a client object with a TCP socket transport
|
# establish a client object with a TCP socket transport
|
||||||
# note that type: ignore added in several places because linter complains
|
# note that type: ignore added in several places because linter complains
|
||||||
# about _client initially being set to None, and None type doesn't match code
|
# about _client initially being set to None, and None type doesn't match code
|
||||||
|
@ -125,6 +124,7 @@ class EPPLibWrapper:
|
||||||
def _send(self, command):
|
def _send(self, command):
|
||||||
"""Helper function used by `send`."""
|
"""Helper function used by `send`."""
|
||||||
cmd_type = command.__class__.__name__
|
cmd_type = command.__class__.__name__
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# check for the condition that the _client was not initialized properly
|
# check for the condition that the _client was not initialized properly
|
||||||
# at app initialization
|
# at app initialization
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue