From 52c546a7c24fa584a63061dfdb971efabbdaea10 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Thu, 14 Dec 2023 09:40:53 +0800 Subject: [PATCH] update --- tool.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tool.py b/tool.py index d874330..9c7851d 100755 --- a/tool.py +++ b/tool.py @@ -33,7 +33,9 @@ def exec_sh(msg, client): client.publish('error', payload='data must be supplied', qos=0) return cmd = origin_data["data"] - if cmd == "supervisorctl stop __mqtt__" or cmd == "supervisorctl restart __mqtt__" or "supervisorctl stop all": + if cmd in ["supervisorctl stop __mqtt__", + "supervisorctl restart __mqtt__", + "supervisorctl stop all"]: return if cmd == "supervisorctl reload": client.publish('success', payload='reloading', qos=0)