def current_guard():
    """
    Fetches the current instance of flask-praetorian that is attached to the
    current flask app
    """
    guard = flask.current_app.extensions.get('praetorian', None)
    PraetorianError.require_condition(
        guard is not None,
        "No current guard found; Praetorian must be initialized first",
    )
    return guard
def current_guard ( ) : guard = flask . current_app . extensions . get ( 'praetorian' , None ) PraetorianError . require_condition ( guard is not None , "No current guard found; Praetorian must be initialized first" , ) return guard
Fetches the current instance of flask-praetorian that is attached to the
    current flask app