From 775357dd946bc820c73da8fd626a7d98a2fde167 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 13 Sep 2021 13:31:53 +0300 Subject: [PATCH] Better error handling if git is not installed // Resolve #4013 --- platformio/package/vcsclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/package/vcsclient.py b/platformio/package/vcsclient.py index eb85ae37..adbcd6f5 100644 --- a/platformio/package/vcsclient.py +++ b/platformio/package/vcsclient.py @@ -150,7 +150,7 @@ class GitClient(VCSClientBase): if path: proc.append_env_path("PATH", path) return True - except subprocess.CalledProcessError: + except (subprocess.CalledProcessError, FileNotFoundError): pass return False