mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Check to remove none
This commit is contained in:
parent
bf06f4d648
commit
e200718046
@ -92,9 +92,12 @@ def get_gpu_stats(config: FrigateConfig) -> dict[str, dict]:
|
|||||||
else None,
|
else None,
|
||||||
config.cameras.values(),
|
config.cameras.values(),
|
||||||
)
|
)
|
||||||
).remove(None)
|
)
|
||||||
stats: dict[str, dict] = {}
|
stats: dict[str, dict] = {}
|
||||||
|
|
||||||
|
if None in hwaccel_args:
|
||||||
|
hwaccel_args.remove(None)
|
||||||
|
|
||||||
if not hwaccel_args:
|
if not hwaccel_args:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user