Skip to content

Commit

Permalink
org_name_final moved into conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
vegu committed Mar 25, 2024
1 parent 5119d27 commit 11268fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rdap/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand All @@ -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", ""):
Expand Down

0 comments on commit 11268fc

Please sign in to comment.