scipy.odr.odr_error
Optimization and root finding (scipy.optimize)
Exception stopping fitting.
You can raise this exception in your objective function to tell scipy.odr to stop fitting.