still use BaseException for logging purpose

This commit is contained in:
Yuming Zhu 2020-03-02 18:32:00 +08:00
parent cf34706f04
commit d21083a11b
3 changed files with 3 additions and 3 deletions

View file

@ -533,7 +533,7 @@ class BuildRoot(object):
os.setregid(gid, gid)
os.setreuid(uid, uid)
os.execvp(cmd[0], cmd)
except Exception:
except BaseException:
# diediedie
print("Failed to exec mock")
print(''.join(traceback.format_exception(*sys.exc_info())))

View file

@ -139,7 +139,7 @@ def log_output(session, path, args, outfile, uploadpath, cwd=None, logerror=0, a
if env:
environ.update(env)
os.execvpe(path, args, environ)
except Exception:
except BaseException:
msg = ''.join(traceback.format_exception(*sys.exc_info()))
if fd:
try:

View file

@ -322,7 +322,7 @@ class RepoManager(object):
try:
rmtree(path)
status = 0
except Exception:
except BaseException:
logger.error(''.join(traceback.format_exception(*sys.exc_info())))
logging.shutdown()
finally: