Further update to Linux exception handling for host info.

这个提交包含在:
Craig Warren
2017-02-28 11:20:28 +00:00
父节点 5c86087c21
当前提交 1c760be73a

查看文件

@@ -217,7 +217,7 @@ def get_host_info():
manufacturer = subprocess.check_output("cat /sys/class/dmi/id/sys_vendor", shell=True).decode('utf-8').strip() manufacturer = subprocess.check_output("cat /sys/class/dmi/id/sys_vendor", shell=True).decode('utf-8').strip()
model = subprocess.check_output("cat /sys/class/dmi/id/product_name", shell=True).decode('utf-8').strip() model = subprocess.check_output("cat /sys/class/dmi/id/product_name", shell=True).decode('utf-8').strip()
machineID = manufacturer + ' ' + model machineID = manufacturer + ' ' + model
except subprocess.CalledProcessError, e: except subprocess.CalledProcessError as e:
pass pass
# CPU information # CPU information