mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
fix: fix unbound variable access
This commit is contained in:
parent
9b658c0000
commit
14a95c22cf
1 changed files with 1 additions and 0 deletions
|
|
@ -980,6 +980,7 @@ class Device: # pylint: disable=too-many-instance-attributes,too-many-public-me
|
|||
)
|
||||
except libnvml.NVMLError_NotSupported:
|
||||
has_unified_memory = True
|
||||
memory_info = NA
|
||||
except libnvml.NVMLError:
|
||||
memory_info = NA
|
||||
if libnvml.nvmlCheckReturn(memory_info):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue