Update domain_request.py

This commit is contained in:
zandercymatics 2024-07-11 13:42:50 -06:00
parent 9b0302e873
commit 1d5d7f79f1
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -136,6 +136,10 @@ class DomainRequest(TimeStampedModel):
@classmethod @classmethod
def get_org_label(cls, org_name: str): def get_org_label(cls, org_name: str):
"""Returns the associated label for a given org name""" """Returns the associated label for a given org name"""
# This is an edgecase on domains with no org.
# This unlikely to happen but
# a break will occur in certain edge cases without this.
# (more specifically, csv exports).
if not org_name: if not org_name:
return None return None