On 07/10/2012 04:25 PM, Ben Sizer wrote:

If I instead chose to write a custom exception view for
UnicodeDecodeErrors, this would also get used if I accidentally
introduced some Unicode-related errors into my code, when really I want
to distinguish between bad user input and bad code.

I'd suggest submitting a patch to WebOb which causes it to catch UnicodeDecodeError where such exceptions are likely to be raised and reraise a *subclass* of UnicodeDecodeError (e.g. ParamsDecodeError).

- C

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to