From c48396c5c6e718ca021e01e84163107b2615f387 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 27 Dec 2024 08:36:21 -0600 Subject: [PATCH] Fix crash when streams are undefined in go2rtc config password cleaning (#15695) --- frigate/api/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frigate/api/app.py b/frigate/api/app.py index 57efdeb15..7ab54ad86 100644 --- a/frigate/api/app.py +++ b/frigate/api/app.py @@ -139,6 +139,8 @@ def config(request: Request): mode="json", warnings="none", exclude_none=True ) for stream_name, stream in go2rtc.get("streams", {}).items(): + if stream is None: + continue if isinstance(stream, str): cleaned = clean_camera_user_pass(stream) else: