From 102c13ed6ffa71fc0360da5694789bf1a6fca6fa Mon Sep 17 00:00:00 2001 From: Young Han Lee Date: Wed, 15 Apr 2015 14:02:32 +0900 Subject: [PATCH] validate:launcher: Handle git error properly 'OSError' exception is emitted but not handled properly when git is not installed on running system. https://bugzilla.gnome.org/show_bug.cgi?id=747892 --- validate/tools/gst-validate-launcher.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate/tools/gst-validate-launcher.in b/validate/tools/gst-validate-launcher.in index b6f2031..e165f3a 100644 --- a/validate/tools/gst-validate-launcher.in +++ b/validate/tools/gst-validate-launcher.in @@ -30,7 +30,7 @@ def _get_git_first_hash(path): try: os.chdir(path) res = subprocess.check_output(['git', 'rev-list', '--max-parents=0', 'HEAD']).rstrip('\n') - except subprocess.CalledProcessError: + except (subprocess.CalledProcessError, OSError): res = '' finally: os.chdir(cdir) -- 2.7.4