diff options
author | Víctor Martínez <knoopx@gmail.com> | 2019-01-11 19:00:44 +0100 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-01-11 13:00:44 -0500 |
commit | 432e6c490a229f71d608ec0391773ab7f90534d1 (patch) | |
tree | 5694f822f06cccec1ae9cf6a66e44f69b437a7de | |
parent | f0b7d6d67a8e9ab3625811192a278989f75ba8ad (diff) | |
download | kutter-432e6c490a229f71d608ec0391773ab7f90534d1.tar.gz kutter-432e6c490a229f71d608ec0391773ab7f90534d1.tar.xz kutter-432e6c490a229f71d608ec0391773ab7f90534d1.zip |
util: Don't crash when calling get_cpu_info on OS X (#1102)
Signed-off-by: Víctor Martínez <knoopx@gmail.com>
-rw-r--r-- | klippy/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/util.py b/klippy/util.py index dfb505a8..093dd001 100644 --- a/klippy/util.py +++ b/klippy/util.py @@ -43,7 +43,7 @@ def get_cpu_info(): f = open('/proc/cpuinfo', 'rb') data = f.read() f.close() - except OSError: + except IOError, OSError: logging.debug("Exception on read /proc/cpuinfo: %s", traceback.format_exc()) return "?" |