diff options
-rw-r--r-- | build_files/scons/tools/Blender.py | 2 | ||||
-rw-r--r-- | build_files/scons/tools/btools.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/build_files/scons/tools/Blender.py b/build_files/scons/tools/Blender.py index 4d9fb578c06..72eafcdd681 100644 --- a/build_files/scons/tools/Blender.py +++ b/build_files/scons/tools/Blender.py @@ -414,7 +414,7 @@ def buildinfo(lenv, build_type): if os.path.isdir(os.path.abspath('.git')): try: build_commit_timestamp = subprocess.check_output(args=['git', 'log', '-1', '--format=%ct']).strip() - except: + except OSError: build_commit_timestamp = None if not build_commit_timestamp: # Git command not found 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: |