From 4ecfad040f881e9e617500a54e22efbcd72ba9fa Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Sun, 4 Feb 2024 13:04:49 +0800 Subject: [PATCH] success if find sdk_folder --- eng/mgmt/automation/generate_data.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/mgmt/automation/generate_data.py b/eng/mgmt/automation/generate_data.py index 9b30184914da6..c1cbf52aeddb2 100755 --- a/eng/mgmt/automation/generate_data.py +++ b/eng/mgmt/automation/generate_data.py @@ -77,7 +77,8 @@ def find_sdk_folder(): sdk_folder = find_sdk_folder() logging.info('SDK folder: ' + sdk_folder) - succeeded = True + if sdk_folder: + succeeded = True except subprocess.CalledProcessError as error: logging.error(f'tsp-client init fail: {error}')