mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-12-04 19:00:41 +08:00
buildbot: handle a non-critical error
This commit is contained in:
parent
fda13dd539
commit
0709c337c4
1 changed files with 5 additions and 1 deletions
|
@ -97,7 +97,11 @@ class jobsManager:
|
|||
cwd = REPO_ROOT / pkgdirname
|
||||
if cwd.exists():
|
||||
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()]:
|
||||
if fpath.is_dir() and \
|
||||
fpath.name in ('pkg', 'src'):
|
||||
|
|
Loading…
Reference in a new issue