diff --git a/bob/devtools/scripts/ci.py b/bob/devtools/scripts/ci.py index 2cd5f01180943d174573764fabda5112c1a4dcd5..9ecb1bfc31bb8e84dbab9668fa0873130655603c 100644 --- a/bob/devtools/scripts/ci.py +++ b/bob/devtools/scripts/ci.py @@ -531,7 +531,8 @@ def nightlies(ctx, order, dry_run): public=(not private), branch='master', tag=None, username=os.environ['DOCUSER'], password=os.environ['DOCPASS'], dry_run=dry_run) - elif os.path.exists(local_docs): - logger.debug('Sphinx output was generated during test/rebuild ' \ - 'of %s - Erasing...', package) - shutil.rmtree(local_docs) + + if os.path.exists(local_docs): + logger.debug('Sphinx output was generated during test/rebuild ' \ + 'of %s - Erasing...', package) + shutil.rmtree(local_docs)