Mesa (master): git_sha1_gen.py: fix code style

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed May 20 22:17:06 UTC 2020


Module: Mesa
Branch: master
Commit: c909370117d702d2d9e671ff9a611c85f30539c5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c909370117d702d2d9e671ff9a611c85f30539c5

Author: Eric Engestrom <eric at engestrom.ch>
Date:   Wed May 20 01:22:42 2020 +0200

git_sha1_gen.py: fix code style

Bare `except` are bad form as per PEP8.

Signed-off-by: Eric Engestrom <eric at engestrom.ch>
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5112>

---

 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



More information about the mesa-commit mailing list