answered 7 years ago
I don't know why, but the correct way is as follows:
sage: foo(x) Traceback (most recent call last): ... ValueError: x is not palatable to foo