From c909370117d702d2d9e671ff9a611c85f30539c5 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 20 May 2020 01:22:42 +0200 Subject: [PATCH] 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: --- bin/git_sha1_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2