diff options
-rwxr-xr-x | bin/cpu_topology | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/cpu_topology b/bin/cpu_topology index ba27b6a..7822f9e 100755 --- a/bin/cpu_topology +++ b/bin/cpu_topology @@ -46,9 +46,8 @@ class sysfs_cpu(): for i in items: try: syscpu_fh = open(os.path.join(self.path, i), 'r') - except FileNotFoundError: - print("ERROR: %s seems to be missing, unable to continue" % - self.path) + except OSError as e: + print("ERROR: %s" % e) sys.exit(1) else: self.syscpu[i] = syscpu_fh.readline().strip() |