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

@@ -61,6 +61,6 @@ async def get_status(engine: AsyncEngine) -> StatusResult:
status.data_updated = await _get_database_date(conn)
status.database_version = await _get_database_version(conn)
except asyncpg.PostgresError:
return StatusResult(700, 'No database')
return StatusResult(700, 'Database connection failed')
return status