X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5bf55a69a5f9ede8b4e673732f1150a81ca2de86..3f72ca4bcab2e0f6f0f6db89c7c2659d06858885:/nominatim/api/results.py diff --git a/nominatim/api/results.py b/nominatim/api/results.py index 469f06d9..829008fb 100644 --- a/nominatim/api/results.py +++ b/nominatim/api/results.py @@ -500,7 +500,7 @@ def _get_address_lookup_id(result: BaseResultT) -> int: async def _finalize_entry(conn: SearchConnection, result: BaseResultT) -> None: - assert result.address_rows + assert result.address_rows is not None postcode = result.postcode if not postcode and result.address: postcode = result.address.get('postcode')