mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-03 06:40:22 +00:00
Catch intel GPU stats decode error
This commit is contained in:
parent
d727adddde
commit
587c8d2f2f
@ -306,11 +306,14 @@ def get_intel_gpu_stats(sriov: bool) -> Optional[dict[str, str]]:
|
|||||||
if sriov:
|
if sriov:
|
||||||
intel_gpu_top_command += ["-d", "sriov"]
|
intel_gpu_top_command += ["-d", "sriov"]
|
||||||
|
|
||||||
p = sp.run(
|
try:
|
||||||
intel_gpu_top_command,
|
p = sp.run(
|
||||||
encoding="ascii",
|
intel_gpu_top_command,
|
||||||
capture_output=True,
|
encoding="ascii",
|
||||||
)
|
capture_output=True,
|
||||||
|
)
|
||||||
|
except UnicodeDecodeError:
|
||||||
|
return None
|
||||||
|
|
||||||
# timeout has a non-zero returncode when timeout is reached
|
# timeout has a non-zero returncode when timeout is reached
|
||||||
if p.returncode != 124:
|
if p.returncode != 124:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user