Fix the 2to3 issue: catch the exception