Skip to content

Commit ee46b59

Browse files
committed
Throw exception when no tasks are loaded
1 parent 2465e0a commit ee46b59

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/webdevops/taskloader/BaseDockerTaskLoader.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ def load_tasks(self, cmd, opt_values, pos_args):
5858
#import json,sys;print json.dumps(dockerfile_list, sort_keys=True, indent = 4, separators = (',', ': '));sys.exit(0);
5959

6060
tasklist = self.generate_task_list(dockerfile_list)
61+
62+
if not tasklist or len(tasklist) == 0:
63+
raise Exception('No tasks found')
64+
6165
tasklist = self.process_tasklist(tasklist)
6266

6367
return tasklist, config

0 commit comments

Comments
 (0)