Try Catch Valueerror Python