From 2faeded1ea78f97cb827fc07f89b55190dcd9dc8 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Wed, 12 Mar 2025 13:14:45 -0600 Subject: [PATCH] Update public_contact.py --- src/registrar/models/public_contact.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/registrar/models/public_contact.py b/src/registrar/models/public_contact.py index 72abbb210..a02c9b11a 100644 --- a/src/registrar/models/public_contact.py +++ b/src/registrar/models/public_contact.py @@ -97,7 +97,7 @@ class PublicContact(TimeStampedModel): def get_contact_info_from_epp(self, get_result_as_dict=False): """Grabs the resultant contact information in epp for this public contact by using the InfoContact command. - Returns `registry.send(req, cleaned=True).res_data[0]`.""" + Returns a commands.InfoContactResultData object, or a dict if get_result_as_dict is True.""" try: req = commands.InfoContact(id=self.registry_id) result = registry.send(req, cleaned=True).res_data[0] @@ -124,7 +124,7 @@ class PublicContact(TimeStampedModel): logger.info("Contact Info on PublicContact model (compare against EPP):") logger.info("=====================") for key in results.keys(): - if value_on_model := getattr(self, key) is not None: + if value_on_model := getattr(cls, key) is not None: logger.info(f"{key}: {value_on_model}") @classmethod