]> git.openstreetmap.org Git - nominatim.git/commit
do not hide errors when importing tokenizer
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 18 May 2021 14:28:21 +0000 (16:28 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 18 May 2021 14:28:21 +0000 (16:28 +0200)
commitb2722650d48ab719ca5f6e8606629c22b02941d9
treec7c6737bb99f33fac152a3a306d14317f97a578b
parent54b06d7abcd42f8a634b6acb60d26819391b22b5
do not hide errors when importing tokenizer

Explicitly check for the tokenizer source file to check that
the name is correct. We can't use the import error for that
because it hides other import errors like a missing
library.

Fixes #2327.
nominatim/tokenizer/factory.py
test/python/conftest.py