Check to remove none

This commit is contained in:
Nick Mowen 2022-09-25 07:49:19 -06:00
parent bf06f4d648
commit e200718046

View File

@ -92,9 +92,12 @@ def get_gpu_stats(config: FrigateConfig) -> dict[str, dict]:
else None,
config.cameras.values(),
)
).remove(None)
)
stats: dict[str, dict] = {}
if None in hwaccel_args:
hwaccel_args.remove(None)
if not hwaccel_args:
return None