Revert "Debug client bug"

This reverts commit 825d07ba7c.
This commit is contained in:
zandercymatics 2023-10-19 09:00:56 -06:00
parent 47afb0339f
commit 6262a4cf39
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
4 changed files with 16 additions and 58 deletions

View file

@ -1,15 +1,13 @@
import logging
from time import sleep
from epplibwrapper.utility.pool_error import PoolError, PoolErrorCodes
try:
from epplib import commands
from epplib.client import Client
except ImportError:
pass
from .errors import LoginError, SocketError
from .errors import LoginError
logger = logging.getLogger(__name__)
@ -48,9 +46,8 @@ class Socket:
Tries 3 times"""
# Something went wrong if this doesn't exist
if not hasattr(self.client, "connect"):
message = "self.client does not have a connect method"
logger.warning(message)
raise PoolError(code=PoolErrorCodes.INVALID_CLIENT_TYPE)
logger.warning("self.client does not have a connect method")
return False
counter = 0 # we'll try 3 times
while True: