Fix edge case on localhost

This commit is contained in:
zandercymatics 2023-10-19 09:28:11 -06:00
parent 352a895d8d
commit b663ac7b71
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 7 additions and 2 deletions

View file

@ -229,8 +229,9 @@ try:
# Initialize epplib
CLIENT = EPPLibWrapper()
logger.info("registry client initialized")
except Exception:
except Exception as err:
CLIENT = None # type: ignore
logger.warning(
"Unable to configure epplib. Registrar cannot contact registry.", exc_info=True
)
logger.warning(err)