He unsuccessfully contested Edinburgh West at the 1929 general election .
He unsuccessfully won the seat at the 1931 general election .
He unsuccessfully contested Edinburgh West at the 1929 general election , but won the seat at the 1931 general election .