code reformatting

This commit is contained in:
David Kennedy 2023-09-20 10:00:11 -04:00
parent 3243399d26
commit 46b6467fca
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -74,7 +74,6 @@ class Command(BaseCommand):
# an error getting the domain, skip this domain and add it to # an error getting the domain, skip this domain and add it to
# domains_with_errors # domains_with_errors
try: try:
domain = Domain.objects.get(name=transition_domain.domain_name)
# if prior username does not match current username # if prior username does not match current username
if ( if (
not email_context["email"] not email_context["email"]
@ -86,9 +85,7 @@ class Command(BaseCommand):
self.emails_to_send.append(copy.deepcopy(email_context)) self.emails_to_send.append(copy.deepcopy(email_context))
email_context["domains"] = [] email_context["domains"] = []
email_context["email"] = transition_domain.username email_context["email"] = transition_domain.username
email_context["domains"].append( email_context["domains"].append(transition_domain.domain_name)
transition_domain.domain_name
)
except Exception as err: except Exception as err:
# error condition if domain not in database # error condition if domain not in database
self.domains_with_errors.append( self.domains_with_errors.append(