Update patch_federal_agency_info.py

This commit is contained in:
zandercymatics 2024-01-03 08:51:22 -07:00
parent f8c3383840
commit 22450ed964
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -128,7 +128,7 @@ class Command(BaseCommand):
# After the update has happened, do a sweep of what we get back.
# If the fields we expect to update are still None, then something is wrong.
for di in corrected_domains:
if domain_name in td_dict and td_dict.get(domain_name) is not None and di.federal_agency is None:
if di not in self.di_skipped and di.federal_agency is None:
logger.info(f"{TerminalColors.FAIL}Failed to update {di}{TerminalColors.ENDC}")
self.di_failed_to_update.append(di)