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