def get_user(username_or_id, domain):
    if username_or_id in '@':
        return get_user_from_username(username_or_id)
    else:
        try:
            couch_user = CommCareUser.get(username_or_id)
            return couch_user
        except ResourceNotFound:
            username_or_id = '{}@{}.commcarehq.org'.format(username_or_id, domain)
            return get_user_from_username(username_or_id)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/ota/tasks.py/get_user/swapped operands of `in`