mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 12:15:25 +03:00
catch exceptions for unsupported cameras
This commit is contained in:
parent
d77e225bf6
commit
73dfdad4c7
@ -528,8 +528,7 @@ class OnvifController:
|
|||||||
except Exception:
|
except Exception:
|
||||||
pass # We're unsupported, that'll be reported in the next check.
|
pass # We're unsupported, that'll be reported in the next check.
|
||||||
|
|
||||||
# there doesn't seem to be an onvif standard with this optional parameter
|
try:
|
||||||
# some cameras can report MoveStatus with or without PanTilt or Zoom attributes
|
|
||||||
pan_tilt_status = getattr(status.MoveStatus, "PanTilt", None)
|
pan_tilt_status = getattr(status.MoveStatus, "PanTilt", None)
|
||||||
zoom_status = getattr(status.MoveStatus, "Zoom", None)
|
zoom_status = getattr(status.MoveStatus, "Zoom", None)
|
||||||
|
|
||||||
@ -542,7 +541,9 @@ class OnvifController:
|
|||||||
"IDLE",
|
"IDLE",
|
||||||
"MOVING",
|
"MOVING",
|
||||||
]:
|
]:
|
||||||
logger.error(
|
raise Exception
|
||||||
|
except Exception:
|
||||||
|
logger.warning(
|
||||||
f"Camera {camera_name} does not support the ONVIF GetStatus method. Autotracking will not function correctly and must be disabled in your config."
|
f"Camera {camera_name} does not support the ONVIF GetStatus method. Autotracking will not function correctly and must be disabled in your config."
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user