Skip to content


Avoid searching for old nightlies in missing dirs
Browse files Browse the repository at this point in the history
These directories may be missing (e.g. a first time build),
so don't try to look inside them for old nightlies if so.
  • Loading branch information
aneeshusa committed Apr 27, 2017
1 parent 7ff803e commit ba874d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/servo/
Expand Up @@ -323,6 +323,8 @@ def clean_nightlies(self, force=False, keep=None):
removing_anything = False
for tool in ["rust", "cargo"]:
base = path.join(self.context.sharedir, tool)
if not path.isdir(base):
for name in os.listdir(base):
# We append `-alt` if LLVM assertions aren't enabled,
# so use just the commit hash itself.
Expand Down

0 comments on commit ba874d6

Please sign in to comment.