結果 : python raise exception if list is empty