From 189168b359063cfd1cc007204636568a1fdf783b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 23 Dec 2019 07:58:37 +0300 Subject: pylint/pep8 fixes --- pull/utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pull/utils.py') diff --git a/pull/utils.py b/pull/utils.py index 6ffccd1..84337e8 100644 --- a/pull/utils.py +++ b/pull/utils.py @@ -10,10 +10,9 @@ import subprocess def check_output(*args, stdout=subprocess.PIPE, **kwargs): - result = subprocess.run(args, stdout=stdout, stderr=subprocess.STDOUT, - encoding='utf-8', **kwargs) try: - result.check_returncode() + result = subprocess.run(args, stdout=stdout, stderr=subprocess.STDOUT, + encoding='utf-8', check=True, **kwargs) if stdout != subprocess.DEVNULL: if result.stdout is None: logging.debug('%s', args) -- cgit v1.2.3