]> git.openstreetmap.org Git - nominatim.git/commit
make NominatimAPI[Async] a context manager
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 19 Aug 2024 09:31:38 +0000 (11:31 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 19 Aug 2024 09:31:38 +0000 (11:31 +0200)
commitc2594aca4075fe7b7a70d45a068523ca3d372ab2
tree49b6e633e907d553938baf499c2db482f299bedc
parent8b41b80bff156c2b9cdebfa2b0fba75421fb228a
make NominatimAPI[Async] a context manager

If close() isn't properly called, it can lead to odd error messages
about uncaught exceptions.
src/nominatim_api/core.py
test/python/api/conftest.py
test/python/api/search/test_icu_query_analyzer.py
test/python/api/search/test_legacy_query_analyzer.py
test/python/api/search/test_query_analyzer_factory.py
test/python/api/test_api_connection.py
test/python/api/test_api_deletable_v1.py
test/python/api/test_api_polygons_v1.py