diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-14 10:52:12 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-14 10:52:12 +0000 |
commit | 49fb2a337661d1b9a80de8ff35a640083fa98d2f (patch) | |
tree | 8cb4ba42bef4d24af6fdc85a2f800eff27ef03dc /modules/api/api.py | |
parent | 6387f0e85d207705e0a68178bbf71aa81ba82256 (diff) | |
download | stable-diffusion-webui-gfx803-49fb2a337661d1b9a80de8ff35a640083fa98d2f.tar.gz stable-diffusion-webui-gfx803-49fb2a337661d1b9a80de8ff35a640083fa98d2f.tar.bz2 stable-diffusion-webui-gfx803-49fb2a337661d1b9a80de8ff35a640083fa98d2f.zip |
response 501 if not a able to restart
Diffstat (limited to 'modules/api/api.py')
-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" |