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

@ -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: