| Index: tools/find_runtime_symbols/prepare_symbol_info.py
|
| diff --git a/tools/find_runtime_symbols/prepare_symbol_info.py b/tools/find_runtime_symbols/prepare_symbol_info.py
|
| index 0723de351b3e644d5251d4e491a3315f906b0945..9b1622555eca456893a4e696ca6346ddd3c8b6cc 100755
|
| --- a/tools/find_runtime_symbols/prepare_symbol_info.py
|
| +++ b/tools/find_runtime_symbols/prepare_symbol_info.py
|
| @@ -27,7 +27,7 @@ def _dump_command_result(command, output_dir_path, basename, suffix):
|
| try:
|
| subprocess.check_call(
|
| command, stdout=handle_out, stderr=handle_err, shell=True)
|
| - except:
|
| + except (OSError, subprocess.CalledProcessError):
|
| error = True
|
| finally:
|
| os.close(handle_err)
|
| @@ -112,7 +112,7 @@ def prepare_symbol_info(maps_path, output_dir_path=None, use_tempdir=False):
|
| LOGGER.info('Creating a new directory "%s".' % output_dir_path)
|
| try:
|
| os.mkdir(output_dir_path)
|
| - except OSError, e:
|
| + except OSError:
|
| LOGGER.warn('A directory "%s" cannot be created.' % output_dir_path)
|
| if use_tempdir:
|
| output_dir_path = tempfile.mkdtemp()
|
|
|