Accidentally left some stray code from a minor refactor
This commit is contained in:
zandercymatics 2023-11-20 11:28:07 -07:00
parent 42ef026254
commit 2e44a9099a
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 7 additions and 1 deletions

View file

@ -67,7 +67,7 @@ class Command(BaseCommand):
# If any key in skipped_fields has a value, then # If any key in skipped_fields has a value, then
# we override what is specified in the JSON. # we override what is specified in the JSON.
if options not in skipped_fields or options[key] is not None: if options not in skipped_fields:
options[key] = value options[key] = value
except Exception as err: except Exception as err:

View file

@ -58,6 +58,12 @@ contact help@get.gov
class LoadOrganizationErrorCodes(IntEnum): class LoadOrganizationErrorCodes(IntEnum):
"""Used when running the load_organization_data script
Overview of error codes:
- 1 TRANSITION_DOMAINS_NOT_FOUND
- 2 UPDATE_DOMAIN_INFO_FAILED
- 3 EMPTY_TRANSITION_DOMAIN_TABLE
"""
TRANSITION_DOMAINS_NOT_FOUND = 1 TRANSITION_DOMAINS_NOT_FOUND = 1
UPDATE_DOMAIN_INFO_FAILED = 2 UPDATE_DOMAIN_INFO_FAILED = 2
EMPTY_TRANSITION_DOMAIN_TABLE = 3 EMPTY_TRANSITION_DOMAIN_TABLE = 3