diff options
Diffstat (limited to 'src/pyfedpkg/__init__.py')
-rw-r--r-- | src/pyfedpkg/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index f913774..96f8fc9 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -167,6 +167,9 @@ def _run_command(cmd, shell=False, env=None, pipe=[], cwd=None): stdin=proc.stdout, shell=shell, cwd=cwd) + (output, err) = proc.communicate() + if proc.returncode: + raise FedpkgError('Non zero exit') else: subprocess.check_call(command, env=environ, stdout=sys.stdout, stderr=sys.stderr, shell=shell, |