Chris Angelico wrote:
> func(menu.remove(mint) except ValueError: pass)
That would be a syntax error, because the except
expression is *not* in a value-ignoring context
here.
You would have to say
func(menu.remove(mint) except ValueError: None)
--
Greg