From c58c19da3aee987cd5b704be4a36a13a9370cf72 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 28 Sep 2023 15:48:44 -0500 Subject: [PATCH] exception handling --- frigate/ptz/autotrack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/ptz/autotrack.py b/frigate/ptz/autotrack.py index 4324867ce..de3f0483f 100644 --- a/frigate/ptz/autotrack.py +++ b/frigate/ptz/autotrack.py @@ -111,7 +111,7 @@ class PtzMotionEstimator: logger.debug( f"Motion estimator transformation: {self.coord_transformations.rel_to_abs([[0,0]])}" ) - except: + except Exception: # sometimes opencv can't find enough features in the image to find homography, so catch this error logger.warning( f"Autotracker: motion estimator couldn't get transformations for {camera_name} at frame time {frame_time}"