結果 : how to check for valueerror in python