Skip to content

Commit

Permalink
Support ONVIF exceptions when sending pan-tilt commands
Browse files Browse the repository at this point in the history
  • Loading branch information
meme123123 committed Apr 1, 2024
1 parent 4d522be commit 3cad07d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frigate/ptz/onvif.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,11 @@ def _move(self, camera_name: str, command: OnvifCommandEnum) -> None:
}
}

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"]:
Expand Down

0 comments on commit 3cad07d

Please sign in to comment.