From ac78caf80a8e70e2c7e436b176d69535040c688b Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Tue, 20 Sep 2016 10:53:08 +0200 Subject: [PATCH] bug fix: do not crash if there is no test base defined in a project --- src/test_module.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test_module.py b/src/test_module.py index 2d0c08d..9a8dc5d 100644 --- a/src/test_module.py +++ b/src/test_module.py @@ -210,6 +210,8 @@ class Test: test_base_info = None for project_name in self.config.PROJECTS.projects: project_info = self.config.PROJECTS.projects[project_name] + if "test_bases" not in project_info: + continue for t_b_info in project_info.test_bases: if t_b_info.name == test_base_name: test_base_info = t_b_info -- 2.39.2