git_sha1_gen.py: fix code style

Bare `except` are bad form as per PEP8.

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5112>
This commit is contained in:
Eric Engestrom 2020-05-20 01:22:42 +02:00 committed by Marge Bot
parent 413c6f9905
commit c909370117
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ def get_git_sha1():
'rev-parse',
'HEAD',
], stderr=open(os.devnull, 'w')).decode("ascii")
except:
except Exception:
# don't print anything if it fails
git_sha1 = ''
return git_sha1