XuehaiPan / nvitop

An interactive NVIDIA-GPU process viewer and beyond, the one-stop solution for GPU process management.
https://nvitop.readthedocs.io
Apache License 2.0
4.56k stars 144 forks source link

feat(api): handle exceptions for function `getpass.getuser()` #130

Closed XuehaiPan closed 1 month ago

XuehaiPan commented 1 month ago

Issue Type

Description

Move the getuser() function under a contextlib.suppress(ImportError, OSError) context.

Motivation and Context

Resolves #129

cc @landgraf @quarckster

This would also resolve an incoming change of the exception type in the Python upstream in Python 3.13.