def send_loop():
    """
    Loop indefinitely, checking queue at intervals of EMPTY_QUEUE_SLEEP and
    sending messages if any are on queue.
    """
    
    while True:
        while not Message.objects.all():
            logging.debug(EMPTY_QUEUE_SLEEP % "sleeping for %s seconds before checking queue again")
            time.sleep(EMPTY_QUEUE_SLEEP)
        send_all()
dataset/ETHPy150Open brosner/django-mailer/mailer/engine.py/send_loop/swapped operands of `%`