From 69a34edd584e54994ecf4e3e4caa33972c8a4184 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 10 Sep 2018 02:54:15 +0200 Subject: [PATCH] [enh] check if path to analyseCI is good --- run.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run.py b/run.py index 26c81d4..07861ca 100644 --- a/run.py +++ b/run.py @@ -552,6 +552,10 @@ async def index(request): @argh.arg('-t', '--type', choices=['stable', 'arm', 'testing-unstable', 'dev'], default="stable") def main(path_to_analyseCI, ssl=False, keyfile_path="/etc/yunohost/certs/ci-apps.yunohost.org/key.pem", certfile_path="/etc/yunohost/certs/ci-apps.yunohost.org/crt.pem", type="stable", dont_minotor_apps_list=False): + if not os.path.exists(path_to_analyseCI): + print(f"Error: analyseCI script doesn't exist at '{path_to_analyseCI}'") + sys.exit(1) + reset_pending_jobs() reset_busy_workers()