Skip to content

Commit bb79d82

Browse files
authored
Don't print this exception
On a Mac without GPUs this prints a message `NVML Shared Library Not Found` randomly with some Python versions.
1 parent 0621df2 commit bb79d82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simvue/metrics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def get_gpu_metrics(processes):
6565
gpu_metrics[f"resources/gpu.memory.percent.{i}"] = memory_percent
6666

6767
nvmlShutdown()
68-
except Exception as err:
69-
logger.error(str(err))
68+
except:
69+
pass
7070

7171
return gpu_metrics

0 commit comments

Comments
 (0)