未验证 提交 d789331f 编写于 作者: B Beraldo Leal 提交者: GitHub

Merge pull request #4068 from yanan-fu/cpu

utils.cpu.get_version: Fix IndexError: list index out of range
......@@ -118,8 +118,8 @@ def get_version():
for line in cpu_info:
version_out = re.findall(version_pattern[arch], line)
if version_out:
break
return version_out[0].decode('utf-8') if version_out[0] else ""
return version_out[0].decode('utf-8')
return ''
def get_vendor():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册