From bd22f82b1b3a7c1e247c5f37de4c4545ac15256f Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Sat, 20 Apr 2024 00:26:49 +0300 Subject: [PATCH] fix(configure): unhappy types --- configure.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/configure.py b/configure.py index f79a587..5c6d013 100755 --- a/configure.py +++ b/configure.py @@ -31,9 +31,8 @@ class Projects: if not os.path.exists(self.project_dir): os.makedirs(self.project_dir) - only_projects = os.getenv("TT_ONLY_PROJECTS") - if only_projects: - only_projects = only_projects.split(",") + only_projects = os.getenv("TT_ONLY_PROJECTS", "") + only_projects_list = only_projects.split(",") self.projects: List[Project] = [] project_list = [ @@ -59,7 +58,7 @@ class Projects: logging.warning(f"skipping {project_dir} (skip flag set)") continue - if only_projects and project_id not in only_projects: + if len(only_projects_list) > 0 and project_id not in only_projects: continue project = Project(