X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f5e52e748f0a4275e3238e51c47de2ddccfea0ff..dfcb24061eb6d3d415cd86d2f4edd95c4debaf36:/nominatim/db/properties.py diff --git a/nominatim/db/properties.py b/nominatim/db/properties.py index 40cb262e..e8d5e0ca 100644 --- a/nominatim/db/properties.py +++ b/nominatim/db/properties.py @@ -41,4 +41,7 @@ def get_property(conn: Connection, name: str) -> Optional[str]: if cur.rowcount == 0: return None - return cast(Optional[str], cur.fetchone()[0]) # type: ignore[no-untyped-call] + result = cur.fetchone() + assert result is not None + + return cast(Optional[str], result[0])