diff options
author | Andreas Bergmeier <andreas.bergmeier@gmx.net> | 2013-04-27 12:25:37 +0200 |
---|---|---|
committer | Andreas Bergmeier <andreas.bergmeier@gmx.net> | 2013-04-27 12:26:08 +0200 |
commit | 209871d41d9070e6a3bc5748fadd6bd5942911ec (patch) | |
tree | fc74536842c33e6ac447c0786d8a3d57955bb7db /tools/shared.py | |
parent | 897eda9ceeb7d3369fef19b3da55d009e6fa2d28 (diff) |
Explicitly refer to CalledProcessError with its package name.
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py index f1cca907..bc1d4352 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -720,7 +720,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e try: Building.configure(configure + configure_args, stdout=open(os.path.join(project_dir, 'configure_'), 'w'), stderr=open(os.path.join(project_dir, 'configure_err'), 'w'), env=env) - except CalledProcessError, e: + except subprocess.CalledProcessError, e: pass # Ignore exit code != 0 def open_make_out(i, mode='r'): return open(os.path.join(project_dir, 'make_' + str(i)), mode) @@ -734,7 +734,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e try: Building.make(make + make_args, stdout=make_out, stderr=make_err, env=env) - except CalledProcessError, e: + except subprocess.CalledProcessError, e: pass # Ignore exit code != 0 try: if cache is not None: |