Exception stopping fitting.
You can raise this exception in your objective function to tell scipy.odr to stop fitting.
scipy.odr.odr_error
scipy.odr.polynomial