fix error message for non-existing database

This commit is contained in:
Sarah Hoffmann
2022-12-07 20:05:24 +01:00
parent 9d31a67116
commit 93b9288c30
7 changed files with 26 additions and 6 deletions

View File

@@ -65,6 +65,8 @@ class NominatimV1:
result = await self.api.status()
self.format_response(req, resp, result)
if result.status and req.context.format == 'text':
resp.status = 500
def get_application(project_dir: Path,