diff options
author | Eric Engestrom <eric@engestrom.ch> | 2020-05-20 01:22:42 +0200 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-05-20 22:05:41 +0000 |
commit | c909370117d702d2d9e671ff9a611c85f30539c5 (patch) | |
tree | dabe0b4d142a147f09614d97505837b79e37e51d /bin | |
parent | 413c6f9905262939cbe56cb021d7806eb7d97de1 (diff) | |
download | mesa-c909370117d702d2d9e671ff9a611c85f30539c5.tar.gz mesa-c909370117d702d2d9e671ff9a611c85f30539c5.tar.bz2 mesa-c909370117d702d2d9e671ff9a611c85f30539c5.zip |
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>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/git_sha1_gen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/git_sha1_gen.py b/bin/git_sha1_gen.py index 7fb5c990735..9d4369ebc06 100644 --- a/bin/git_sha1_gen.py +++ b/bin/git_sha1_gen.py @@ -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 |