diff --git a/pype/lib/profiles_filtering.py b/pype/lib/profiles_filtering.py index 202f4e7247..08a30ce688 100644 --- a/pype/lib/profiles_filtering.py +++ b/pype/lib/profiles_filtering.py @@ -80,6 +80,11 @@ def validate_value_by_regexes(value, in_list): if "*" in in_list: return 0 + # If value is not set and in list has specific values then resolve value + # as not matching. + if not value: + return -1 + regexes = compile_list_of_regexes(in_list) for regex in regexes: if re.match(regex, value):