projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
413c6f9
)
git_sha1_gen.py: fix code style
author
Eric Engestrom
<eric@engestrom.ch>
Tue, 19 May 2020 23:22:42 +0000
(
01:22
+0200)
committer
Marge Bot
<eric+marge@anholt.net>
Wed, 20 May 2020 22:05:41 +0000
(22:05 +0000)
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>
bin/git_sha1_gen.py
patch
|
blob
|
history
diff --git
a/bin/git_sha1_gen.py
b/bin/git_sha1_gen.py
index 7fb5c9907353a536f9137a303942dcf77afc0a22..9d4369ebc06bffe3188608686f1275bc6ecc6f47 100644
(file)
--- 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