rollbar/__init__.py
def _add_request_data(data, request):
    """
    Attempts to build request data; if successful, sets the 'request' key on `data`.
    """
    try:
        request_data = _build_request_data(request)
    except Exception as e:
        log.exception("Exception while building request_data for Rollbar payload: %r", e)
    else:
        if request_data:
            _filter_ip(request_data, SETTINGS['capture_ip'])
            data['request'] = request_data
def _add_request_data(data, request):
    """
    Attempts to build request data; if successful, sets the 'request' key on `data`.
    """
    try:
        request_data = _build_request_data(request)
    except Exception as e:
        log.exception("Exception while building request_data for Rollbar payload: %r", e)
    else:
        if request_data:
            _filter_ip(request_data, SETTINGS['capture_ip'])
            data['request'] = request_data
def _add_request_data ( data , request ) : try : request_data = _build_request_data ( request ) except Exception as e : log . exception ( "Exception while building request_data for Rollbar payload: %r" , e ) else : if request_data : _filter_ip ( request_data , SETTINGS [ 'capture_ip' ] ) data [ 'request' ] = request_data
Attempts to build request data; if successful, sets the 'request' key on `data`.
Attempts to build request data ; if successful sets the request key on data .