Added exception handling for ImportError

pull/4608/head
Abhishek Kumar 9 years ago
parent fd1b06ceef
commit f4ef7bca14
  1. 6
      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/':

Loading…
Cancel
Save