def delete_queue(self, queue_name):
    result = True
    sqs = self.connect()
    try:
        queue = sqs.get_queue_by_name(QueueName=queue_name)
        if (queue is not None):
            queue_url = queue.url
            client = sqs.meta.client
            client.delete_queue(QueueUrl=queue_url)
        else:
            raise Exception('queue not exists')
    except Exception as err:
        self.logger.error(err)
        self.exception = err
        result = False
    return result
def delete_queue(self, queue_name):
    result = True
    sqs = self.connect()
    try:
        queue = sqs.get_queue_by_name(QueueName=queue_name)
        if (queue is not None):
            queue_url = queue.url
            client = sqs.meta.client
            client.delete_queue(QueueUrl=queue_url)
        else:
            raise Exception('queue not exists')
    except Exception as err:
        self.logger.error(err)
        self.exception = err
        result = False
    return result