From 5de7b77f04c0f0b3f77d20ab808e70d915448814 Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Sun, 26 May 2019 12:18:24 +0200 Subject: [PATCH] fix crash when forcing termination of subprocesses --- sau/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sau/helpers.py b/sau/helpers.py index 0125917..6096abb 100644 --- a/sau/helpers.py +++ b/sau/helpers.py @@ -17,7 +17,7 @@ def exec_cmd(cmd, timeout=900, env = None): try: out, err = proc.communicate(timeout=timeout) - except subprocess.TimeoutExpired as err: + except subprocess.TimeoutExpired as ex: log.error('Command "{}" timed out, killing it.'.format(' '.join(cmd))) proc.kill() time.sleep(30)