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,11 +92,14 @@ 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 not hwaccel_args: if None in hwaccel_args:
return None hwaccel_args.remove(None)
if not hwaccel_args:
return None
for args in hwaccel_args: for args in hwaccel_args:
if "cuvid" in args: if "cuvid" in args: