Commit fa2f720a authored by Maximilian Wirtz's avatar Maximilian Wirtz
Browse files

Convert Exception to string

The Exception raised connecting the remote site was not converted to a
proper string before showing it. This raised another error.

Change-Id: I02906dbd713a410bfcee9f39e13c0fb6ae3beb7f
parent 6bb901dc
......@@ -107,7 +107,7 @@ class MasterControlSnapin(SidebarSnapin):
return
if site_state["state"] == "dead":
html.show_error(site_state["exception"])
html.show_error(str(site_state["exception"]))
return
if site_state["state"] == "disabled":
......@@ -116,7 +116,7 @@ class MasterControlSnapin(SidebarSnapin):
if site_state["state"] == "unknown":
if site_state.get("exception"):
html.show_error(site_state["exception"])
html.show_error(str(site_state["exception"]))
else:
html.show_error(_("Site state is unknown"))
return
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment