Corrected py2 exception catch.