From ad573d64cf00d381982c21894b8eac9bf7e0cb56 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Thu, 22 Dec 2022 14:40:13 +0100 Subject: [PATCH] [FIX] runbot: manage falsy path_glob --- runbot/models/team.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runbot/models/team.py b/runbot/models/team.py index 5112b204..1e438f80 100644 --- a/runbot/models/team.py +++ b/runbot/models/team.py @@ -74,6 +74,8 @@ class RunbotTeam(models.Model): return ownership.team_id for team in self: + if not team.path_glob: + continue if any([fnmatch(file_path, pattern.strip().strip('-')) for pattern in team.path_glob.split(',') if pattern.strip().startswith('-')]): continue if any([fnmatch(file_path, pattern.strip()) for pattern in team.path_glob.split(',') if not pattern.strip().startswith('-')]):