- sql = sa.select(conn.t.properties.c.value)\
- .where(conn.t.properties.c.property == 'database_version')
- verstr = await conn.scalar(sql)
- if verstr is not None:
- status.database_version = version.parse_version(cast(str, verstr))
+ try:
+ verstr = await conn.get_property('database_version')
+ status.database_version = version.parse_version(verstr)
+ except ValueError:
+ pass