alfredodeza / pecan-notario

A notario schema decorator for Pecan
BSD 3-Clause "New" or "Revised" License
1 stars 4 forks source link

exceptions: webob 1.7 compat #7

Closed ktdreyer closed 6 years ago

ktdreyer commented 6 years ago

WebOb 1.7 raises TypeError if we create a Response without a charset kwarg.

To work around this, use the text kwarg since the JSON is plaintext. EDIT: not compatible with webob 1.2.3 in RHEL 7. In the new version, I simply set the charset kwarg.

ktdreyer commented 6 years ago

Hmm looks like this change breaks compat with RHEL 7's python-webob-1.2.3-7.el7 .

ktdreyer commented 6 years ago

Ok, I've re-pushed a new version that works with RHEL 7's webob and the webob 1.7.3 in Fedora.