def log_sms_exception(msg):
    direction = "OUT" if msg.direction == OUTGOING else "IN"
    message = direction % "[SMS %s] Error processing SMS"
    notify_exception(None, message=message, details={
        'domain': msg.domain,
        'date': msg.date,
        'message_id': msg.couch_id,
    })
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/sms/api.py/log_sms_exception/swapped operands of `%`