Commit d54036a9 by Cody Yu Committed by Lianmin Zheng

Safe remove tmpdir (#4781)

parent de919cbd
......@@ -93,7 +93,7 @@ class LocalBuilder(Builder):
def build(self, measure_inputs):
results = []
shutil.rmtree(self.tmp_dir)
shutil.rmtree(self.tmp_dir, ignore_errors=True)
self.tmp_dir = tempfile.mkdtemp()
for i in range(0, len(measure_inputs), self.n_parallel):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment