Skip to content

Commit

Permalink
Merge pull request #4047 from liang-cong-red-hat/utils_misc_add_excep…
Browse files Browse the repository at this point in the history
…tion_for_cpu_topology

Add AttributeError to exception when cpu topology file is not found
  • Loading branch information
dzhengfy authored Jan 6, 2025
2 parents 0462cd8 + 087c963 commit eb184fe
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 eb184fe

Please sign in to comment.