unitedstates/congress

[Error] Errors retrieving some bills for congress 113-116.

GoldenJoe opened this issue · 2 comments

I recently ran bills for the 116th congress. I had a few bills from the 113th and 114th congresses in my directory from previous tests. Some of the older bills had errors. All except for the first are related to this issue: usgpo/bill-status#147

Errors for 46 items:


[s1696-113] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 159, in form_bill_json_dict
    'by_request': bill_dict['sponsors']['item'][0]['byRequestType']     is not None,

TypeError: 'NoneType' object has no attribute '__getitem__'


[hr46-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr50-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr274-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr307-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr699-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr1295-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr1609-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr1759-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr1763-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr1978-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr2173-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr2647-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr2745-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr2944-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr2998-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr3049-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr3776-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr3849-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr4028-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr4188-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr4998-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr5054-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr5148-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr5288-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr5412-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr5506-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr5671-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr5693-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr5805-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr5819-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr5898-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr5942-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr6061-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr6080-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr6136-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr6231-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr6287-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr6320-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hr6409-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hres14-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[hres241-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[s334-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[s603-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[s729-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


[sres121-114] Exception:

Traceback (most recent call last):

  File "/opt/theunitedstates.io/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/opt/theunitedstates.io/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 428, in actions_for
    return [build_dict(action, closure) for action in reversed(action_list)]

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 410, in build_dict
    action_dict = action_for(item)

  File "/opt/theunitedstates.io/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'


Errors for 46.
Skipped 0.
Saved data for 11486.

Probably fixed by #246?

Can confirm this is fixed. Closing.