Fix crash when streams are undefined in go2rtc config password cleaning

This commit is contained in:
Josh Hawkins 2024-12-27 08:24:32 -06:00
parent 00371546a3
commit e8f1c3d25c

View File

@ -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: