

def group_and_bridge(kwargs):
    '\n    Given kwargs from the view (with view specific keys popped) pull out the\n    bridge and fetch group from database.\n    '
    bridge = kwargs.pop('bridge', None)
    if bridge:
        try:
            group = bridge.get_group(**kwargs)
        except ObjectDoesNotExist:
            raise Http404
    else:
        group = None
    return (kwargs, bridge)

dataset/ETHPy150Open amarandon/smeuhsocial/apps/account/views.py group_and_bridge/VarMisuse@64/125 `group`->`kwargs`