How can I ignore ValueError when I try to remove an element from a list? How can I ignore ValueError when I try to remove an element from a list? python python