Use Invocation errors for expected errors.

This commit is contained in:
Julian Stirling 2026-02-19 17:40:15 +00:00
parent 3f54084d14
commit 19a6943d60
4 changed files with 8 additions and 6 deletions

View file

@ -713,11 +713,11 @@ class AutofocusThing(lt.Thing):
return "success", capture_id
class NotAPeakError(RuntimeError):
class NotAPeakError(lt.exceptions.InvocationError):
"""The data to fit isn't a peak."""
class NoFocusFoundError(RuntimeError):
class NoFocusFoundError(lt.exceptions.InvocationError):
"""No focus found during looping Autofocus."""