diff options
author | Stevan Radakovic <stevan.radakovic@linaro.org> | 2017-09-28 00:46:59 +0200 |
---|---|---|
committer | Remi Duraffort <remi.duraffort@linaro.org> | 2017-09-28 08:14:35 +0000 |
commit | 16b7b1bc587ae46040b8e6fb72d7970eb903fde7 (patch) | |
tree | 71f4c28aeb3f748acd8532814adc862f0c191943 | |
parent | 7bc85c3ee25a71e5a559d9d76a5bf8ebe806c7df (diff) |
Make sure that lack of git executable is handled.
If there is no git executable at the expected path, let the user know.
Change-Id: I41976641fae90c118a52f643567b6836e2957c87
Reviewed-on: https://review.linaro.org/21601
Reviewed-by: lava-bot
Reviewed-by: Remi Duraffort <remi.duraffort@linaro.org>
-rw-r--r-- | lava_scheduler_tool/scheduler.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lava_scheduler_tool/scheduler.py b/lava_scheduler_tool/scheduler.py index e0f68c2..80f8382 100644 --- a/lava_scheduler_tool/scheduler.py +++ b/lava_scheduler_tool/scheduler.py @@ -101,6 +101,8 @@ def validate_single_url(url): stderr=subprocess.STDOUT) except subprocess.CalledProcessError as exc: sys.stderr.write("Warning: %s\n" % exc) + except OSError as exc: + sys.stderr.write("Missing git executable: %s\n" % exc) else: try: res = requests.head(url[0], allow_redirects=True, |