From a886b6a3e595c8ba4d3e1156ab28b8e0c1f74839 Mon Sep 17 00:00:00 2001 From: faurel Date: Mon, 1 Apr 2024 21:19:24 +0200 Subject: [PATCH] Support ONVIF exceptions when sending pan-tilt commands (#10777) Co-authored-by: Aurel --- frigate/ptz/onvif.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frigate/ptz/onvif.py b/frigate/ptz/onvif.py index d8af877e9..335e2ee29 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"]: