diff options
author | Eric Engestrom <[email protected]> | 2017-08-02 14:57:52 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-08-02 14:57:54 +0100 |
commit | aab06494873bd9f46e8db960ea1f889701d43400 (patch) | |
tree | e9a5fe0d0e504cd14628198e1a058c57862b58eb /bin | |
parent | 44828e99f9b5f04f8e2f19dd671de4d67ee1f595 (diff) |
git_sha1_gen: catch any error the same way
Acked-by: Jose Fonseca <[email protected]>
Signed-off-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/git_sha1_gen.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/git_sha1_gen.py b/bin/git_sha1_gen.py index fe30084a4f8..e26d3a3f764 100755 --- a/bin/git_sha1_gen.py +++ b/bin/git_sha1_gen.py @@ -13,11 +13,8 @@ try: '--short=10', 'HEAD', ], stderr=open(os.devnull, 'w')) -except subprocess.CalledProcessError as e: - # don't print anything if git fails - pass -except OSError as eos: - # don't fail on inaccessible files when sandboxed +except: + # don't print anything if it fails pass else: sys.stdout.write('#define MESA_GIT_SHA1 "git-%s"\n' % git_sha1.rstrip()) |