Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Oct 19, 2018
1 parent e3fc124 commit 802e6eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/python/pants/engine/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,8 @@ def products_request(self, products, subjects):
if throw_root_states:
unique_exceptions = tuple({t.exc for t in throw_root_states})

# TODO: consider adding a new top-level function adjacent to products_request used for running console tasks,
# so that this code doesn't need to exist in this form.
if len(unique_exceptions) == 1 and isinstance(unique_exceptions[0], GracefulTerminationException):
raise unique_exceptions[0]

Expand Down

0 comments on commit 802e6eb

Please sign in to comment.