Fix an undetected assignment in the except handler.