diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-06-23 13:46:41 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-06-23 13:46:41 +0400 |
commit | 9b987103f6684f9abe55cd536b718bc95cb06f24 (patch) | |
tree | e837d71c1bdeed042d4515d9f0d15fec088e51d4 /build_files/scons/tools/btools.py | |
parent | 3bd965bc03500c552e043ad7e0eb55853e2b0755 (diff) |
Use specified exception mask for buildinfo
This way we only catch exceptions which we're intended to
and if something bad happens (like missing import due to
refactor or so) we'll see them instantly.
Diffstat (limited to 'build_files/scons/tools/btools.py')
-rw-r--r-- | build_files/scons/tools/btools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_files/scons/tools/btools.py b/build_files/scons/tools/btools.py index bdbb016be1b..d22adfda5f6 100644 --- a/build_files/scons/tools/btools.py +++ b/build_files/scons/tools/btools.py @@ -58,7 +58,7 @@ def get_version(): def get_hash(): try: build_hash = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).strip() - except: + except OSError: build_hash = None print("WARNING: could not use git to retrieve current Blender repository hash...") if build_hash == '' or build_hash == None: |