You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It raises a UserError("some message") and expects that to get rendered. I verified that it does get caught by the publishing machinery and directed to the correct view. But that view is implemented in browser/user.pt like this:
The view is declared for zope.exceptions.interfaces.IUserError which says nothing about it being an Exception (and so having .args) or being iterable at all:
Found this while porting zope.app.file.
It raises a UserError("some message") and expects that to get rendered. I verified that it does get caught by the publishing machinery and directed to the correct view. But that view is implemented in browser/user.pt like this:
That is, it wants to iterate on the context, which is an exception.
In Python 2, iterating the exception does this:
But in Python 3, exceptions aren't iterable:
And so the tal expression does nothing and the message doesn't make it back to the user.
Thoughts on the best way to fix this?
The text was updated successfully, but these errors were encountered: