def create_billable_for_sms(msg, delay=True):
    if not isinstance(msg, SMS):
        raise Exception("Expected msg to be an SMS")

    if not msg.domain:
        return

    try:
        from corehq.apps.sms.tasks import store_billable
        if delay:
            store_billable.delay(msg)
        else:
            store_billable(msg)
    except Exception as e:
        log_smsbillables_error(e % "Errors Creating SMS Billable: %s")
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/sms/api.py/create_billable_for_sms/swapped operands of `%`