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): ...@@ -280,7 +280,10 @@ def config_SR_folder(config):
if len(cfg) != 2: if len(cfg) != 2:
continue # there is a broken config file continue # there is a broken config file
list.append(cfg[1]) list.append(cfg[1])
if os.path.exists(config['software_root']):
folder_list = os.listdir(config['software_root']) folder_list = os.listdir(config['software_root'])
else:
return
if not folder_list: if not folder_list:
return return
current_project = open(os.path.join(config['etc_dir'], ".project")).read() 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