From d0ac191f5278c27354905d180510d003676834a1 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Wed, 16 Nov 2022 11:45:41 +0800 Subject: [PATCH] Don't throw exception if base dir missing --- lib/worker_multibuild.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/worker_multibuild.py b/lib/worker_multibuild.py index 4429e13..8b2a724 100644 --- a/lib/worker_multibuild.py +++ b/lib/worker_multibuild.py @@ -108,6 +108,8 @@ def list_jobs(directory=".buildbot"): """ results = [] files = ["Dockerfile", "build.sh", "test.sh"] + if not exists(directory): + return results for item in listdir(directory): print("checking directory {}".format(item)) flag = False