using Management.version(), it should return a server_version and python_version.
But since synapse 1.94.0 it does not return a python_version in the JSON.
So your code produces an error.
I would also remove the python_version from the code. This may be backwards incompatible. You could also remove the python str from SynapseVersion (even more incompatible then 😆 ).
Best way would be to check if the server_version is < 1.94.0, and if yes, include python_version. if higher, skip it.
using
Management.version(), it should return a server_version and python_version.But since synapse 1.94.0 it does not return a
python_versionin the JSON.So your code produces an error.
I would also remove the python_version from the code. This may be backwards incompatible. You could also remove the
pythonstr fromSynapseVersion(even more incompatible then 😆 ).Best way would be to check if the server_version is < 1.94.0, and if yes, include python_version. if higher, skip it.