From 3c2179c4db4fb021c32571a366301dd1f17ca7d6 Mon Sep 17 00:00:00 2001 From: Aurel Date: Mon, 1 Apr 2024 19:12:39 +0200 Subject: [PATCH] Support ONVIF exceptions when sending pan-tilt commands --- 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"]: