aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/pull/utils.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-12-23 07:58:37 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-12-23 07:58:37 +0300
commit189168b359063cfd1cc007204636568a1fdf783b (patch)
treebc74b1d4c16fe6c94c520aa6ffd8d9b8485d7e24 /pull/utils.py
parentREADME: update Docker Hub link (diff)
downloadcgitize-189168b359063cfd1cc007204636568a1fdf783b.tar.gz
cgitize-189168b359063cfd1cc007204636568a1fdf783b.zip
pylint/pep8 fixes
Diffstat (limited to '')
-rw-r--r--pull/utils.py5
1 files changed, 2 insertions, 3 deletions
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)