Modified to catchable exception by Python Exception class.