summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2016-08-02 14:02:25 +0100
committerThibault Saunier <tsaunier@gnome.org>2016-08-09 14:37:22 -0400
commit0da87a382f2bc6abecf3136e242ed48295842c74 (patch)
treee7c304d8bbf562caa25bac74176a9d353ad67d22
parentf4fb8d6e4e6538ee27ad2e3ab89619b14f33f37a (diff)
setup: Ignore pre-commit FileNotFoundError exceptions
This exception may be thrown if the pre-commit script isn’t available, as opposed to it being available but returning an error. Reviewed-by: Thibault Saunier <tsaunier@gnome.org> Differential Revision: https://phabricator.freedesktop.org/D1236
-rw-r--r--setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index e8ae7f1..22cc7a0 100644
--- a/setup.py
+++ b/setup.py
@@ -30,5 +30,5 @@ setup(
30 30
31try: 31try:
32 subprocess.check_call(["pre-commit", "install"]) 32 subprocess.check_call(["pre-commit", "install"])
33except subprocess.CalledProcessError: 33except (FileNotFoundError, subprocess.CalledProcessError):
34 print("Could not install `pre-commit` hook") 34 print("Could not install `pre-commit` hook")