diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-14 19:52:12 +0900 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-14 19:52:12 +0900 |
commit | 49fb2a337661d1b9a80de8ff35a640083fa98d2f (patch) | |
tree | 8cb4ba42bef4d24af6fdc85a2f800eff27ef03dc | |
parent | 6387f0e85d207705e0a68178bbf71aa81ba82256 (diff) |
response 501 if not a able to restart
-rw-r--r-- | modules/api/api.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index 5ea1d21c..4dc48a03 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -727,6 +727,7 @@ class Api: def restart_webui(self): if restart.is_restartable(): restart.restart_program() + return Response(status_code=501) def terminate_webui(request): shared.state.server_command = "stop" |