@app.route("/profile/current")
def get_current_user():
    local_sleep(1)
    try:
        user_info = g.user.dict_about()
    except __HOLE__:  # anon user has no as_dict()
        user_info = None

    return json_resp_from_thing({"user": user_info})
dataset/ETHPy150Open Impactstory/total-impact-webapp/totalimpactwebapp/views.py/get_current_user