this should maybe be a more specific exception? the main() function already catches `pika.exceptions.AMQPConnectionError`, so you will end up with 2 similar logging messages if you can't connect to the AMQP server.