2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 15:38:25 +00:00

fix: check whether supervisorctl exists before trying to restart

Resolves #1607

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2025-01-07 12:30:29 +05:30
parent 4c6ce6331d
commit 01a3bf4dfd
No known key found for this signature in database
GPG Key ID: 9DCC61E211BF645F

View File

@ -298,6 +298,9 @@ def patch_sites(bench_path="."):
def restart_supervisor_processes(bench_path=".", web_workers=False, _raise=False): def restart_supervisor_processes(bench_path=".", web_workers=False, _raise=False):
if which("supervisorctl") is None:
return
from bench.bench import Bench from bench.bench import Bench
bench = Bench(bench_path) bench = Bench(bench_path)