still use BaseException for logging purpose
This commit is contained in:
parent
cf34706f04
commit
d21083a11b
3 changed files with 3 additions and 3 deletions
|
|
@ -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())))
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue