From 8de747e14c170908907c51e9321c3e56d3ce4934 Mon Sep 17 00:00:00 2001 From: An Li Date: Mon, 10 Oct 2022 17:42:12 +0800 Subject: [PATCH] Fix : Fix an issue where is_split_env method is not runable on windows platform (#380) --- autohooks/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autohooks/utils.py b/autohooks/utils.py index 1ddd67b4..c702f6a3 100644 --- a/autohooks/utils.py +++ b/autohooks/utils.py @@ -129,7 +129,7 @@ def is_split_env(): check=True, ) is_split = True - except subprocess.CalledProcessError: + except (subprocess.CalledProcessError, FileNotFoundError): is_split = False return is_split