diff --git a/antarest/study/storage/utils.py b/antarest/study/storage/utils.py index 29c7841c6e..42a5cf2ccf 100644 --- a/antarest/study/storage/utils.py +++ b/antarest/study/storage/utils.py @@ -479,6 +479,6 @@ def should_ignore_folder_for_scan(path: Path, filter_in: t.List[str], filter_out return not ( path.is_dir() - and any([re.search(regex, path.name) for regex in filter_in]) - and not any([re.search(regex, path.name) for regex in filter_out]) + and any(re.search(regex, path.name) for regex in filter_in) + and not any(re.search(regex, path.name) for regex in filter_out) )