mirror of https://github.com/Desuuuu/klipper.git
util: Don't crash when calling get_cpu_info on OS X (#1102)
Signed-off-by: Víctor Martínez <knoopx@gmail.com>
This commit is contained in:
parent
f0b7d6d67a
commit
432e6c490a
|
@ -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 "?"
|
||||
|
|
Loading…
Reference in New Issue