added that if an exception occurs within the try block, it will be caught, logged, and then a negative acknowledgment (basic_nack) is sent to the broker with requeue=False, indicating that the message should not be requeued. This prevents the message from being processed repeatedly and blocking the queue