Commit 1ca6802f authored by Pietro Albini's avatar Pietro Albini

Don't crash when updating a branch

This was caused by a race condition between the instance shutting down
and managetests deleting its files.
parent 659534f7
......@@ -286,7 +286,10 @@ class Branch:
if not self.present():
return
shutil.rmtree(str(self.manager.root / "branches" / self.name))
shutil.rmtree(
str(self.manager.root / "branches" / self.name),
ignore_errors=True
)
try:
del self.manager.details["branches"][self.name]
......
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