From 1c760be73af99837a11ba3d5847f6fc65361addb Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Tue, 28 Feb 2017 11:20:28 +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 28c6903a..fe53ca09 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, e: + except subprocess.CalledProcessError as e: pass # CPU information