patch with "try" and "except"