[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:
parent
b26dc65c41
commit
3fac5f2bc6
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue