From 0709c337c46bd86885b8f5728db69bf664d5d7f4 Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 6 Sep 2019 15:54:20 +0800 Subject: [PATCH] buildbot: handle a non-critical error --- buildbot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/buildbot.py b/buildbot.py index fb94bf0..f2cce99 100755 --- a/buildbot.py +++ b/buildbot.py @@ -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'):