From 97796a04746611be77ec48b6ebeaa2525f9e3bba Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Tue, 28 Feb 2017 11:17:13 +0000 Subject: [PATCH] Further update to Linux exception handling for host info. --- gprMax/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gprMax/utilities.py b/gprMax/utilities.py index 5104c1a4..28c6903a 100644 --- a/gprMax/utilities.py +++ b/gprMax/utilities.py @@ -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