diff --git a/builder/kojid b/builder/kojid index 197fd54e..a9c8cf13 100755 --- a/builder/kojid +++ b/builder/kojid @@ -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()))) diff --git a/koji/daemon.py b/koji/daemon.py index 1a758575..0167c5bc 100644 --- a/koji/daemon.py +++ b/koji/daemon.py @@ -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: diff --git a/util/kojira b/util/kojira index d963c9ea..f25c1af7 100755 --- a/util/kojira +++ b/util/kojira @@ -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: