Wrap linregress in try/except block; can still bring down application however.