Fixes / linter

This commit is contained in:
zandercymatics 2023-11-13 14:34:51 -07:00
parent 6f729ff693
commit 1b5ecc8e52
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 25 additions and 21 deletions

View file

@ -24,7 +24,7 @@ def export_domains_to_writer(writer, columns, sort_fields, filter_condition):
"Organization name": domainInfo.organization_name,
"City": domainInfo.city,
"State": domainInfo.state_territory,
"AO": domainInfo.authorizing_official.first_name + " " + domainInfo.authorizing_official.last_name
"AO": (domainInfo.authorizing_official.first_name or "") + " " + (domainInfo.authorizing_official.last_name or "")
if domainInfo.authorizing_official
else " ",
"AO email": domainInfo.authorizing_official.email if domainInfo.authorizing_official else " ",