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__(
4949 "Mercurial setup" , repository = self .repository , revision = self .revision
5050 )
5151
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 )
5455
5556 # Load coverage tasks for all platforms
5657 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:
5151def main () -> None :
5252 logger .info ("Starting code coverage bot for crontrigger" )
5353 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 )
5555 hook .run ()
You can’t perform that action at this time.
0 commit comments