Further update to Linux exception handling for host info.

这个提交包含在:
Craig Warren
2017-02-28 11:17:13 +00:00
父节点 4d4e8181d4
当前提交 97796a0474

查看文件

@@ -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()
model = subprocess.check_output("cat /sys/class/dmi/id/product_name", shell=True).decode('utf-8').strip()
machineID = manufacturer + ' ' + model
except subprocess.CalledProcessError:
except subprocess.CalledProcessError, e:
pass
# CPU information