summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildstream/_pipeline.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/_pipeline.py b/buildstream/_pipeline.py
index cc462c21a..4e5f4d0e9 100644
--- a/buildstream/_pipeline.py
+++ b/buildstream/_pipeline.py
@@ -235,6 +235,9 @@ class Pipeline():
# exceptions removed
#
def except_elements(self, targets, elements, except_targets):
+ if not except_targets:
+ return elements
+
targeted = list(self.dependencies(targets, Scope.ALL))
visited = []