mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
Catch intel stats json decoding error
This commit is contained in:
parent
65bb33d1c7
commit
4a35b52bef
@ -279,7 +279,11 @@ def get_intel_gpu_stats() -> dict[str, str]:
|
||||
logger.error(f"Unable to poll intel GPU stats: {p.stderr}")
|
||||
return None
|
||||
else:
|
||||
data = json.loads(f'[{"".join(p.stdout.split())}]')
|
||||
try:
|
||||
data = json.loads(f'[{"".join(p.stdout.split())}]')
|
||||
except json.JSONDecodeError:
|
||||
return None
|
||||
|
||||
results: dict[str, str] = {}
|
||||
render = {"global": []}
|
||||
video = {"global": []}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user