diff --git a/glances/plugins/gpu/cards/nvidia.py b/glances/plugins/gpu/cards/nvidia.py index 996ec0573..52d2e53b0 100644 --- a/glances/plugins/gpu/cards/nvidia.py +++ b/glances/plugins/gpu/cards/nvidia.py @@ -20,7 +20,7 @@ # Avoid importing pynvml if NVML_LIB is not installed from ctypes import CDLL - if (sys.platform[:3] == "win"): + if sys.platform[:3] == "win": try: CDLL(os.path.join(os.getenv("WINDIR", "C:/Windows"), "System32/nvml.dll")) except OSError: