From 82a3b6e7ef7effe55da06f5d87f151203ae2c89c Mon Sep 17 00:00:00 2001 From: Xiaohang Date: Mon, 24 Mar 2025 14:36:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=82=E6=95=B0=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config_generator.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/config_generator.py b/config_generator.py index e283bf0..08f4c61 100644 --- a/config_generator.py +++ b/config_generator.py @@ -376,9 +376,20 @@ if len(sys.argv) > 7: param_enable_upload_remote_config = sys.argv[7] if __name__ == "__main__": - if project_id is None or platform is None or env is None or google_sheet_file_name is None or sheet_table_name is None: - config.notification.append_msg(f'参数错误[project_id:{project_id}, platform:{platform}, env:{env}, ' - f'google_sheet_file_name:{google_sheet_file_name}, sheet_table_name:{sheet_table_name}]') + if project_id is None: + config.notification.append_msg(f'参数错误[project_id is None]') + exit(1) + + if platform is None: + config.notification.append_msg(f'参数错误[platform is None]') + exit(1) + + if env is None: + config.notification.append_msg(f'参数错误[env is None]') + exit(1) + + if google_sheet_file_name is None or sheet_table_name is None: + config.notification.append_msg(f'参数错误[google_sheet_file_name or sheet_table_name is None]') exit(1) config_generator = ConfigGenerator(google_sheet_file_name, sheet_table_name, project_id, platform, env)