Skip to content

Commit 141c420

Browse files
fix: Updated Error Type to TaskclusterRestFailure to align with the switch to the taskcluster package
1 parent 5fa49ac commit 141c420

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/taskgraph/optimize/strategies.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import logging
22
from datetime import datetime
33

4+
from taskcluster.exceptions import TaskclusterRestFailure
5+
46
from taskgraph.optimize.base import OptimizationStrategy, register_strategy
57
from taskgraph.util.path import match as match_path
68
from taskgraph.util.taskcluster import find_task_id, status_task
@@ -64,7 +66,7 @@ def should_replace_task(self, task, params, deadline, arg):
6466
continue
6567

6668
return task_id
67-
except KeyError:
69+
except (KeyError, TaskclusterRestFailure):
6870
# go on to the next index path
6971
pass
7072

0 commit comments

Comments
 (0)