Fix bad except statement