Closed Jef239 closed 1 week ago
In https://github.com/Stefal/rtkbase/commit/20932fa232245f667ba8b818fcbaa0978ab07836 you fix https://github.com/Stefal/rtkbase/issues/421 but recreate https://github.com/Stefal/rtkbase/issues/162
Fix:
--- a/web_app/server.py +++ b/web_app/server.py @@ -971,7 +971,12 @@ def getServicesStatus(emit_pingback=True): #print("unit qui déconne : ", service["name"]) service["active"] = service["unit"].isActive() service["status"] = service["unit"].status() - service["result"] = service["unit"].get_result() + + try: + service["result"] = service["unit"].get_result() + except AttributeError as e: + service["result"] = "" + if service.get("result") == "success" and service.get("status") == "running": service["state_ok"] = True elif service.get("result") == "exit-code":
Yes, I was aware of this error message. https://github.com/Stefal/rtkbase/commit/f21cf08e7a53fa35ab76edbc3cf31a60eb89c186 should fix this in a better way.
In https://github.com/Stefal/rtkbase/commit/20932fa232245f667ba8b818fcbaa0978ab07836 you fix https://github.com/Stefal/rtkbase/issues/421 but recreate https://github.com/Stefal/rtkbase/issues/162
Fix: