mirror of
https://github.com/xcat2/confluent.git
synced 2026-08-03 16:07:00 +00:00
ec7b96ecfb
grab_response_with_status hands back bytes, so every failure path put a b'<status>error</status>' repr in front of the operator rather than what the SMM said. Decode at the raise, replacing rather than failing on a body that is not valid utf8. The bodies still reach fromstring() as bytes, which is what lxml wants when the xml carries an encoding declaration.