diff options
author | Jesse Keating <jkeating@redhat.com> | 2010-08-11 23:18:06 -0700 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2010-08-11 23:18:06 -0700 |
commit | 82e6b7c8725511a5e779405a4aa67ebfbd5a0f93 (patch) | |
tree | 8e4ccf760e45c3566729d3cf0ab0146904e271ce /src/pyfedpkg | |
parent | 8b122297cda150b32b4b3c7aeb4ef629207953fd (diff) | |
download | fedora-packager-82e6b7c8725511a5e779405a4aa67ebfbd5a0f93.tar.gz fedora-packager-82e6b7c8725511a5e779405a4aa67ebfbd5a0f93.tar.xz fedora-packager-82e6b7c8725511a5e779405a4aa67ebfbd5a0f93.zip |
Catch missing executables. BZ 619879
Diffstat (limited to 'src/pyfedpkg')
-rw-r--r-- | src/pyfedpkg/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index 387995f..122a187 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -140,7 +140,8 @@ def _run_command(cmd, shell=False, env=None, pipe=[]): else: subprocess.check_call(command, env=environ, stdout=sys.stdout, stderr=sys.stderr, shell=shell) - except subprocess.CalledProcessError, e: + except (subprocess.CalledProcessError, + OSError), e: raise FedpkgError(e) except KeyboardInterrupt: raise FedpkgError() |