Use Invocation errors for expected errors.
This commit is contained in:
parent
3f54084d14
commit
19a6943d60
4 changed files with 8 additions and 6 deletions
|
|
@ -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."""
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue