Update src/registrar/views/domain.py

Co-authored-by: zandercymatics <141044360+zandercymatics@users.noreply.github.com>
This commit is contained in:
Matt-Spence 2024-10-02 15:13:31 -05:00 committed by GitHub
parent aa8a4a19fb
commit a42ea0a191
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -226,7 +226,6 @@ class DomainFormBaseView(DomainBaseView, FormMixin):
"user", flat=True
)
emails = list(User.objects.filter(pk__in=manager_pks).values_list("email", flat=True))
logger.debug("attempting to send templated email to domain managers")
try:
send_templated_email(template, subject_template, context=context, cc_addresses=emails)
except EmailSendingError: