Skip to content

Commit

Permalink
Fix assumptions from cherry-pick of #5374
Browse files Browse the repository at this point in the history
  • Loading branch information
stuhood committed Jan 24, 2018
1 parent 222681b commit 91b9f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/pants/goal/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def __str__(self):

def set_resulting_graph_size_in_runtracker(self):
"""Sets the resulting graph size in the run tracker's daemon stats object."""
node_count = self._scheduler.graph_len()
node_count = self._scheduler.graph_len() if self._scheduler else -1
self.run_tracker.pantsd_stats.set_resulting_graph_size(node_count)
return node_count

Expand Down

0 comments on commit 91b9f9a

Please sign in to comment.