From 11268fc4a346f50367522a797068ea6808079c72 Mon Sep 17 00:00:00 2001 From: Stefan Pratter Date: Mon, 25 Mar 2024 16:05:14 +0000 Subject: [PATCH] org_name_final moved into conditional --- rdap/objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rdap/objects.py b/rdap/objects.py index 91b25dc..94a05a2 100644 --- a/rdap/objects.py +++ b/rdap/objects.py @@ -116,6 +116,8 @@ def _parse(self): if "registrant" in roles: if "fn" in vcard and not org_name_final: org_name = vcard["fn"] + if "org" in kind: + org_name_final = True if "adr" in vcard: org_address = vcard["adr"] @@ -136,8 +138,6 @@ def _parse(self): except RdapHTTPError: if not self._rdapc.config.get("ignore_recurse_errors"): raise - if "org" in kind and org_name: - org_name_final = True # WORKAROUND APNIC keeps org info in remarks if "apnic" in self._data.get("port43", ""):