Closed mbercx closed 1 week ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 77.75%. Comparing base (
ef60b66
) to head (d3feec8
). Report is 47 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@sphuber this one is ready for a second round of review!
The current implementation of the
RabbitmqBroker.__str__()
method always prints both the version and the URL of the RabbitMQ server. However, theget_rabbitmq_version()
method fails with aConnectionError
in case the RabbitMQ broker is not able to connect to the server.This issue would bubble up into the
verdi status
command, since this prints the string representation of theRabbitmqBroker
in the message that reports the connection failure. At this point theConnectionError
is no longer caught, and hence the user is exposed to the full traceback.Here we adapt the
RabbitmqBroker.__str__()
method to catch theConnectionError
and only return the URL in this case.