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:
Víctor Martínez 2019-01-11 19:00:44 +01:00 committed by KevinOConnor
parent f0b7d6d67a
commit 432e6c490a
1 changed files with 1 additions and 1 deletions

View File

@ -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 "?"