File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
bot/code_coverage_bot/hooks Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,9 @@ def __init__(
49
49
"Mercurial setup" , repository = self .repository , revision = self .revision
50
50
)
51
51
52
- assert os .path .isdir (cache_root ), f"Cache root { cache_root } is not a dir."
53
- self .repo_dir = os .path .join (cache_root , self .branch )
52
+ if cache_root is not None :
53
+ assert os .path .isdir (cache_root ), f"Cache root { cache_root } is not a dir."
54
+ self .repo_dir = os .path .join (cache_root , self .branch )
54
55
55
56
# Load coverage tasks for all platforms
56
57
decision_task_id = taskcluster .get_decision_task (self .branch , self .revision )
Original file line number Diff line number Diff line change @@ -51,5 +51,5 @@ def run(self) -> None:
51
51
def main () -> None :
52
52
logger .info ("Starting code coverage bot for crontrigger" )
53
53
args = setup_cli (ask_revision = False , ask_repository = False )
54
- hook = CronTriggerHook (args .task_name_filter , args . cache_root , args .working_dir )
54
+ hook = CronTriggerHook (args .task_name_filter , None , args .working_dir )
55
55
hook .run ()
You can’t perform that action at this time.
0 commit comments