mirror of
https://github.com/xcat2/confluent.git
synced 2026-09-05 12:37:56 +00:00
7a7bd758a4
Two places where the code that exists to explain a failure fails instead, and the caller is shown the second failure rather than the first. _do_web_request builds its message from the response body when that body is not the JSON error document the spec asks for. An html 404 page is exactly that, the body is bytes, and str + bytes raised TypeError. The status and the body never reached anyone. LenovoFirmwareConfig raised a bare Exception when python-lxml and python-eficompressor are absent. Confluent has no handler for one, so a missing dependency showed as "Unexpected Error" and hid a message that already said what to install. Neither changes what fails, only what the caller is told.