mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 11:16:07 +02:00
Log error
This commit is contained in:
parent
0896401169
commit
3aac1e38df
2 changed files with 17 additions and 13 deletions
|
@ -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
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue