From 07f68b91b53d27e908ec59ff1f21af346176b25b Mon Sep 17 00:00:00 2001 From: Stefan Midjich Date: Thu, 16 Nov 2017 20:48:05 +0100 Subject: [PATCH] check_output will be best here I believe --- tools/helpers.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/helpers.py b/tools/helpers.py index ace947e..4f5af3d 100644 --- a/tools/helpers.py +++ b/tools/helpers.py @@ -17,10 +17,9 @@ def run_ipset(command, *args, **kw): args=' '.join(args) ) - proc = subprocess.call( + output = subprocess.check_output( shlex.split(full_command), - stdout=subprocess.PIPE, timeout=timeout ) - return proc \ No newline at end of file + return output \ No newline at end of file