From 3fac5f2bc6f9060b1e24ddec12632e905b113f75 Mon Sep 17 00:00:00 2001 From: "Bryan W. Weber" Date: Mon, 21 May 2018 13:00:57 -0400 Subject: [PATCH] [SCons] Catch any Exception when checking git commit fails It doesn't matter why the check failed, just that it did and we don't know the commit --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 41592cd90..894001569 100644 --- a/SConstruct +++ b/SConstruct @@ -716,7 +716,7 @@ env['cantera_short_version'] = '.'.join(str(x) for x in ctversion.version[:2]) try: env['git_commit'] = getCommandOutput('git', 'rev-parse', '--short', 'HEAD') -except OSError: +except Exception: env['git_commit'] = '' # Print values of all build options: