Log error

This commit is contained in:
zandercymatics 2023-10-16 13:54:20 -06:00
parent 0896401169
commit 3aac1e38df
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 17 additions and 13 deletions

View file

@ -44,7 +44,6 @@ except NameError:
# Attn: these imports should NOT be at the top of the file # Attn: these imports should NOT be at the top of the file
try: try:
from .utility.pool import EPPConnectionPool
from .client import CLIENT, commands from .client import CLIENT, commands
from .errors import RegistryError, ErrorCode from .errors import RegistryError, ErrorCode
from epplib.models import common, info from epplib.models import common, info

View file

@ -9,17 +9,6 @@ from django_fsm import FSMField, transition, TransitionNotAllowed # type: ignor
from django.db import models from django.db import models
from typing import Any from typing import Any
from epplibwrapper import (
CLIENT as registry,
commands,
common as epp,
extensions,
info as eppInfo,
RegistryError,
ErrorCode,
)
from registrar.utility.errors import ( from registrar.utility.errors import (
ActionNotAllowed, ActionNotAllowed,
@ -35,8 +24,24 @@ from .utility.domain_helper import DomainHelper
from .utility.time_stamped_model import TimeStampedModel from .utility.time_stamped_model import TimeStampedModel
from .public_contact import PublicContact from .public_contact import PublicContact
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
try:
from epplibwrapper import (
CLIENT as registry,
commands,
common as epp,
extensions,
info as eppInfo,
RegistryError,
ErrorCode,
)
except ImportError as err:
logger.error("An import error occured....")
logger.error(err)
raise err
class Domain(TimeStampedModel, DomainHelper): class Domain(TimeStampedModel, DomainHelper):