mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Don't fail if camera does not support presets (#6497)
This commit is contained in:
parent
b4038821cc
commit
b568a29fa8
@ -79,8 +79,8 @@ class OnvifController:
|
||||
try:
|
||||
presets: list[dict] = ptz.GetPresets({"ProfileToken": profile.token})
|
||||
except ONVIFError as e:
|
||||
logger.error(f"Unable to get presets from camera: {camera_name}: {e}")
|
||||
return False
|
||||
logger.warning(f"Unable to get presets from camera: {camera_name}: {e}")
|
||||
presets = []
|
||||
|
||||
for preset in presets:
|
||||
self.cams[camera_name]["presets"][preset["Name"].lower()] = preset["token"]
|
||||
|
Loading…
Reference in New Issue
Block a user