improve error message on missing modules from nominatim_api

This commit is contained in:
Sarah Hoffmann
2024-08-17 10:03:36 +02:00
parent 1cd8ffad0b
commit feb8cc29a5
2 changed files with 22 additions and 1 deletions

View File

@@ -243,7 +243,8 @@ def get_set_parser() -> CommandlineParser:
raise ex
parser.parser.epilog = \
'\n\nNominatim API package not found. The following commands are not available:'\
f'\n\nNominatim API package not found (was looking for module: {ex.name}).'\
'\nThe following commands are not available:'\
'\n export, convert, serve, search, reverse, lookup, details, status'\
"\n\nRun 'pip install nominatim-api' to install the package."