def get_user(name, exact=False):
    users = settings.SELENIUM_USERS
    try:
        user = users[name]
    except __HOLE__:
        if name == 'WEB_USER' and not exact:
            user = users['ADMIN']
        else:
            raise

    return attrdict(**user)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/hqwebapp/selenium.py/get_user