From 26dac01fdb602d0c0db3cac2e7c822e197c6d5c7 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 29 Apr 2015 11:03:03 +0200 Subject: [PATCH 1/1] was meant with previous commit --- source/systeminfo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/systeminfo.py b/source/systeminfo.py index cdbbb0d..a0de777 100755 --- a/source/systeminfo.py +++ b/source/systeminfo.py @@ -62,7 +62,7 @@ def get_total_phsyical_mem(vars = {}, log = sys.stderr): try: meminfo_file = file(PROC_MEMINFO_PATH,"r") - except IOError, e: + except IOError as e: return total_memory = None @@ -71,7 +71,7 @@ def get_total_phsyical_mem(vars = {}, log = sys.stderr): try: (fieldname,value) = string.split(line,":") - except ValueError, e: + except ValueError as e: # this will happen for lines that don't have two values # (like the first line on 2.4 kernels) continue -- 2.43.0