def get_provider_or_404(provider_id):
    try:
        return current_app.extensions['social'].providers[provider_id]
    except __HOLE__:
        abort(404)
dataset/ETHPy150Open mattupstate/flask-social/flask_social/utils.py/get_provider_or_404