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