]> git.openstreetmap.org Git - nominatim.git/commit
translate UsageError in CLI API commands
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 19 Aug 2024 10:02:33 +0000 (12:02 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 19 Aug 2024 10:02:33 +0000 (12:02 +0200)
commitadce7261ace1b4a21ea49805fb40ba5d50caef89
tree1a11579f55425dff4526698c3f25d18a8a9500cb
parentb01a836d1ecce5c7cc1aceedf19535eeda9058af
translate UsageError in CLI API commands

UsageErrors are handled specially and don't show backtraces
unless explicitly requested. We want the same behaviour for
errors coming from the API functions.
src/nominatim_db/clicmd/api.py