From f4ef7bca14e79588fc9bf7434b0013a2bd6d3870 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 4 Jan 2016 15:06:40 -0800 Subject: [PATCH] Added exception handling for ImportError --- src/boringssl/gen_build_yaml.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/boringssl/gen_build_yaml.py b/src/boringssl/gen_build_yaml.py index 4ce7232c952..0d4ad0bb8cc 100755 --- a/src/boringssl/gen_build_yaml.py +++ b/src/boringssl/gen_build_yaml.py @@ -38,7 +38,11 @@ boring_ssl_root = os.path.abspath(os.path.join( '../../third_party/boringssl')) sys.path.append(os.path.join(boring_ssl_root, 'util')) -import generate_build_files +try: + import generate_build_files +except ImportError: + print yaml.dump({}) + sys.exit() def map_dir(filename): if filename[0:4] == 'src/':