buildbot: handle a non-critical error

This commit is contained in:
JerryXiao 2019-09-06 15:54:20 +08:00
parent fda13dd539
commit 0709c337c4
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -97,7 +97,11 @@ class jobsManager:
cwd = REPO_ROOT / pkgdirname cwd = REPO_ROOT / pkgdirname
if cwd.exists(): if cwd.exists():
logger.info('resetting %s', str(cwd)) logger.info('resetting %s', str(cwd))
bash(GIT_RESET_SUBDIR, cwd=cwd) try:
bash(GIT_RESET_SUBDIR, cwd=cwd)
except Exception:
logger.error(f'Unable to reset dir {cwd}')
print_exc_plus()
for fpath in [f for f in cwd.iterdir()]: for fpath in [f for f in cwd.iterdir()]:
if fpath.is_dir() and \ if fpath.is_dir() and \
fpath.name in ('pkg', 'src'): fpath.name in ('pkg', 'src'):