mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-22 13:00:40 +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
|
cwd = REPO_ROOT / pkgdirname
|
||||||
if cwd.exists():
|
if cwd.exists():
|
||||||
logger.info('resetting %s', str(cwd))
|
logger.info('resetting %s', str(cwd))
|
||||||
|
try:
|
||||||
bash(GIT_RESET_SUBDIR, cwd=cwd)
|
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'):
|
||||||
|
|
Loading…
Reference in a new issue