Bug 1623328 Handle missing target_task_set in try estimates r=ahal

I'm unsure of the root cause as the file should exist if generate_tasks has worked, but this should avoid errors in the meantime while we investigate.

Differential Revision: https://phabricator.services.mozilla.com/D67833

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Simon Fraser 2020-03-24 16:39:37 +00:00
parent d1bfb4ded2
commit f02a5bdd6c

View File

@ -101,7 +101,7 @@ def make_trimmed_taskgraph_cache(graph_cache, dep_cache, target_file=None):
return
target_task_set = set()
if target_file:
if target_file and os.path.isfile(target_file):
with open(target_file) as f:
target_task_set = set(json.load(f).keys())