Fix crash when streams are undefined in go2rtc config password cleaning (#15695)

This commit is contained in:
Josh Hawkins 2024-12-27 08:36:21 -06:00 committed by GitHub
parent 00371546a3
commit c48396c5c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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: