Don't throw exception if base dir missing #28
|
@ -108,6 +108,8 @@ def list_jobs(directory=".buildbot"):
|
||||||
"""
|
"""
|
||||||
results = []
|
results = []
|
||||||
files = ["Dockerfile", "build.sh", "test.sh"]
|
files = ["Dockerfile", "build.sh", "test.sh"]
|
||||||
|
if not exists(directory):
|
||||||
|
return results
|
||||||
for item in listdir(directory):
|
for item in listdir(directory):
|
||||||
print("checking directory {}".format(item))
|
print("checking directory {}".format(item))
|
||||||
flag = False
|
flag = False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user