Python Catch Any Error Of Refraction