osm-search / Nominatim

Open Source search based on OpenStreetMap data
https://nominatim.org
GNU General Public License v3.0
2.98k stars 701 forks source link

Make sure SQLAlchemy can handle the loaded dialect #3463

Closed lonvia closed 3 days ago

lonvia commented 3 days ago

The psycopg dialect was only added in SQLAlchemy 2.0. To avoid loading errors when SQLAlchemy 1.4 is installed together with psycopg3, check that the dialect is really available.

Should fix issues like #3297.