Skip to content

NVR with realtime local object detection for IP cameras

Support ONVIF exceptions when sending pan-tilt commands (#10777)

faurela886b6a3e595
diff --git a/frigate/ptz/onvif.py b/frigate/ptz/onvif.py
index d8af877e91..335e2ee292 100644
--- a/frigate/ptz/onvif.py
+++ b/frigate/ptz/onvif.py
@@ -349,7 +349,10 @@ class OnvifController:
}
}
- onvif.get_service("ptz").ContinuousMove(move_request)
+ try:
+ onvif.get_service("ptz").ContinuousMove(move_request)
+ except ONVIFError as e:
+ logger.warning(f"Onvif sending move request to {camera_name} failed: {e}")
def _move_relative(self, camera_name: str, pan, tilt, zoom, speed) -> None:
if "pt-r-fov" not in self.cams[camera_name]["features"]: