Skip to content

Commit 6103374

Browse files
BernardXiongRbb666
authored andcommitted
当 cmds/.config 不存在时不再输出错误信息
1 parent c45b680 commit 6103374

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmds/cmd_package/cmd_package_upgrade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def Information_statistics():
136136
env_kconfig_path = os.path.join(env_root, 'tools', 'scripts', 'cmds')
137137
env_config_file = os.path.join(env_kconfig_path, '.config')
138138

139-
if find_bool_macro_in_config(env_config_file, 'SYS_PKGS_USING_STATISTICS'):
139+
if os.path.isfile(env_config_file) and find_bool_macro_in_config(env_config_file, 'SYS_PKGS_USING_STATISTICS'):
140140
mac_addr = get_mac_address()
141141
response = requests.get(
142142
'https://www.rt-thread.org/studio/statistics/api/envuse?userid='

0 commit comments

Comments
 (0)