Skip to content

Commit

Permalink
Merge pull request #520 from pipermerriam/piper/issue-273-account-for…
Browse files Browse the repository at this point in the history
…-null-addresses

Account for null addresses during matching
  • Loading branch information
mmclark committed Dec 8, 2015
2 parents 0c8275b + fc9fa78 commit fd8b802
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion seed/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,12 @@ def _match_buildings(file_pk, user_pk):
import_file.save()
# this section spencer changed to make the exact match
for i, un_m_address in enumerate(unmatched_normalized_addresses):
results = _find_matches(un_m_address, canonical_buildings_addresses)
# If we have an address, try to match it
if un_m_address is not None:
results = _find_matches(un_m_address, canonical_buildings_addresses)
else:
results = []

if results:
handle_results(
results, i, can_rev_idx, unmatched_buildings, user_pk
Expand Down

0 comments on commit fd8b802

Please sign in to comment.