X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=bin%2Fgit_sha1_gen.py;h=e26d3a3f76478973a6593b84b6b88d7cf241f4ab;hb=ad160c2273ce4c76fd4713badc126e05dfe9cb81;hp=fe30084a4f87dfd7439bb608ed79ff343f47515a;hpb=44828e99f9b5f04f8e2f19dd671de4d67ee1f595;p=mesa.git 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())