mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-15 17:04:46 +02:00
Code cleanup
This commit is contained in:
parent
0ce4a04b4b
commit
04c7bdd3b6
2 changed files with 8 additions and 20 deletions
|
@ -60,6 +60,7 @@ contact help@get.gov
|
|||
class LoadOrganizationErrorCodes(IntEnum):
|
||||
TRANSITION_DOMAINS_NOT_FOUND = 1
|
||||
UPDATE_DOMAIN_INFO_FAILED = 2
|
||||
EMPTY_TRANSITION_DOMAIN_TABLE = 3
|
||||
|
||||
|
||||
class LoadOrganizationError(Exception):
|
||||
|
@ -72,6 +73,7 @@ class LoadOrganizationError(Exception):
|
|||
"Could not find all desired TransitionDomains. " "(Possible data corruption?)"
|
||||
),
|
||||
LoadOrganizationErrorCodes.UPDATE_DOMAIN_INFO_FAILED: "Failed to update DomainInformation",
|
||||
LoadOrganizationErrorCodes.EMPTY_TRANSITION_DOMAIN_TABLE: "No TransitionDomains exist. Cannot update."
|
||||
}
|
||||
|
||||
def __init__(self, *args, code=None, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue