[PATCH] fix: UnicodeDecodeError: can't decode byte 0xad

Mads Kiilerich mads at kiilerich.com
Sat Aug 31 15:47:35 UTC 2024


Hi

I propose handling it like 
https://kallithea-scm.org/repos/kallithea-incoming/changeset/8b7c72355750fcf791cd4abfc332e26e556aee90 
.

We don't really *know* if the error came from the URL encoding, so I 
prefer to just catch the error we actually saw, and state the fact that 
we got a decode exception while processing request parameters.

Do you agree patch that would be fine - and that the attribution is fine?

I'm not positively sure webob can't choke on decoding anything else. 
That could perhaps be nice to test/review too. But that is apparently 
not a real problem (yet).

/Mads



More information about the kallithea-general mailing list