Fix return code for timeout call

This commit is contained in:
Nick Mowen 2022-12-03 06:13:49 -07:00
parent 4523c9b06d
commit 39157c9774

View File

@ -812,7 +812,8 @@ def get_intel_gpu_stats() -> dict[str, str]:
capture_output=True,
)
if p.returncode != 0:
# timeout has a non-zero returncode when timeout is reached
if p.returncode != 124:
logger.error(p.stderr)
return None
else: