@app.context_processor
def inject_user():
    try:
        return {'user': g.user}
    except __HOLE__:
        return {'user': None}
dataset/ETHPy150Open omab/python-social-auth/examples/flask_example/__init__.py/inject_user