[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
This commit is contained in:
Bryan W. Weber 2018-05-21 13:00:57 -04:00
parent b26dc65c41
commit 3fac5f2bc6
No known key found for this signature in database
GPG key ID: 3A93E209C87E1FE7

View file

@ -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'] = '<unknown>'
# Print values of all build options: