Bug 1301505 - Gracefully handle missing key for nightly fennec class. r=jlund
authorArmen Zambrano Gasparnian <armenzg@mozilla.com>
Mon, 12 Sep 2016 12:12:42 -0400
changeset 355126 6711f5d1f7b694dbea7b831073556beebae52d4e
parent 355125 10322a5fc3e72aef761fc5156676a591d7b53167
child 355127 331f9d101a83510c0976ea268705d42d3483e94b
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlund
bugs1301505
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1301505 - Gracefully handle missing key for nightly fennec class. r=jlund This is currently preventing adding new TaskCluster jobs. MozReview-Commit-ID: IelDf8g494r
taskcluster/taskgraph/task/nightly_fennec.py
--- 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']