diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2016-08-02 14:02:25 +0100 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2016-08-09 14:37:22 -0400 |
commit | 0da87a382f2bc6abecf3136e242ed48295842c74 (patch) | |
tree | e7c304d8bbf562caa25bac74176a9d353ad67d22 | |
parent | f4fb8d6e4e6538ee27ad2e3ab89619b14f33f37a (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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,5 +30,5 @@ setup( try: subprocess.check_call(["pre-commit", "install"]) -except subprocess.CalledProcessError: +except (FileNotFoundError, subprocess.CalledProcessError): print("Could not install `pre-commit` hook") |