From: Eric Engestrom Date: Tue, 19 May 2020 23:22:42 +0000 (+0200) Subject: git_sha1_gen.py: fix code style X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c909370117d702d2d9e671ff9a611c85f30539c5;p=mesa.git git_sha1_gen.py: fix code style Bare `except` are bad form as per PEP8. Signed-off-by: Eric Engestrom Reviewed-by: Dylan Baker Part-of: --- 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