Commit 2032e7a5 authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: added protection in isSoftwareReleaseReady

to quit the function if software folder has been deleted
parent 6af951c9
......@@ -280,7 +280,10 @@ def config_SR_folder(config):
if len(cfg) != 2:
continue # there is a broken config file
list.append(cfg[1])
folder_list = os.listdir(config['software_root'])
if os.path.exists(config['software_root']):
folder_list = os.listdir(config['software_root'])
else:
return
if not folder_list:
return
current_project = open(os.path.join(config['etc_dir'], ".project")).read()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment