Try Except Python If Then One Line