Bug 1301505 - Gracefully handle missing key for nightly fennec class. r=jlund
This is currently preventing adding new TaskCluster jobs.
MozReview-Commit-ID: IelDf8g494r
--- a/taskcluster/taskgraph/task/nightly_fennec.py
+++ b/taskcluster/taskgraph/task/nightly_fennec.py
@@ -20,17 +20,20 @@ logger = logging.getLogger(__name__)
GECKO = os.path.realpath(os.path.join(__file__, '..', '..', '..', '..'))
ARTIFACT_URL = 'https://queue.taskcluster.net/v1/task/{}/artifacts/{}'
INDEX_URL = 'https://index.taskcluster.net/v1/task/{}'
class NightlyFennecTask(base.Task):
def __init__(self, *args, **kwargs):
- self.task_dict = kwargs.pop('task_dict')
+ try:
+ self.task_dict = kwargs.pop('task_dict')
+ except KeyError:
+ pass
super(NightlyFennecTask, self).__init__(*args, **kwargs)
@classmethod
def load_tasks(cls, kind, path, config, params, loaded_tasks):
root = os.path.abspath(os.path.join(path, config[
'nightly_fennec_path']))
project = params['project']