Skip to content

Commit

Permalink
Add AttributeError to exception when cpu topology file is not found
Browse files Browse the repository at this point in the history
Signed-off-by: liang-cong-red-hat <[email protected]>
  • Loading branch information
liang-cong-red-hat committed Jan 2, 2025
1 parent 0462cd8 commit 087c963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virttest/utils_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +1786,7 @@ def get_cpu_topology(self, cpu_id):
)
key_val = str(numa_sys.sys_fs_value).rstrip("\n")
cpu_topo[key] = key_val
except IOError:
except (IOError, AttributeError):
LOG.warning(
"Can not find file %s from sysfs. Please check "
"your system." % key_path
Expand Down

0 comments on commit 087c963

Please sign in to comment.