Make sure version is not None

This commit is contained in:
David Stainton 2017-01-14 17:38:47 +00:00 committed by Jean-Paul Calderone
parent b2d4374976
commit 180975b0af

View File

@ -205,7 +205,10 @@ class Root(rend.Page):
servers[server_id]["connection_status"] = server.get_connection_status().summary
servers[server_id]["available_space"] = server.get_available_space()
servers[server_id]["nickname"] = server.get_nickname()
servers[server_id]["version"] = server.get_version()["application-version"]
if server.get_version() is not None:
servers[server_id]["version"] = server.get_version()["application-version"]
else:
servers[server_id]["version"] = ""
servers[server_id]["last_received_data"] = server.rref.getDataLastReceivedAt()
data = {
"introducers": {