X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8c14df55a61d71f2476c8a17287e1bd162a5c6a6..1f0796778754d8df0dfab9dd01302e26a397f064:/src/nominatim_api/sql/sqlite_functions.py diff --git a/src/nominatim_api/sql/sqlite_functions.py b/src/nominatim_api/sql/sqlite_functions.py index 43865e95..ef46bec3 100644 --- a/src/nominatim_api/sql/sqlite_functions.py +++ b/src/nominatim_api/sql/sqlite_functions.py @@ -10,7 +10,6 @@ Custom functions for SQLite. from typing import cast, Optional, Set, Any import json -# pylint: disable=protected-access def weigh_search(search_vector: Optional[str], rankings: str, default: float) -> float: """ Custom weight function for search results. @@ -118,5 +117,5 @@ async def _make_aggregate(aioconn: Any, *args: Any) -> None: def _create_aggregate(conn: Any, name: str, nargs: int, aggregate: Any) -> None: try: conn.await_(_make_aggregate(conn._connection, name, nargs, aggregate)) - except Exception as error: # pylint: disable=broad-exception-caught + except Exception as error: conn._handle_exception(error)