From 06b2c63a14721d54c18c66e0e576f666f1e82746 Mon Sep 17 00:00:00 2001 From: Paige Williams Date: Wed, 26 Aug 2026 14:35:27 -0700 Subject: [PATCH] add check for taxlot.legal_label before split --- landmapper/app/reports.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/landmapper/app/reports.py b/landmapper/app/reports.py index f905704..f2fedd2 100644 --- a/landmapper/app/reports.py +++ b/landmapper/app/reports.py @@ -394,10 +394,11 @@ def get_aggregate_property_data(property, taxlots): max_elevation.append(taxlot.max_elevation) # HACK: the first value in the legal description was accidentally converted # to a float before stringification. This removes the extra decimal data - legal_label = taxlot.legal_label - legal_label = ''.join(legal_label.split('.0')) - legal.append("%s" % - (legal_label)) + if taxlot.legal_label is not None: + legal_label = taxlot.legal_label + legal_label = ''.join(legal_label.split('.0')) + legal.append("%s" % + (legal_label)) agency.append(taxlot.agency) odf_fpd.append(taxlot.odf_fpd) name.append(taxlot.name)