Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoldenJoe opened this issue Jan 24, 2020 · 2 comments
Closed

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

GoldenJoe opened this issue Jan 24, 2020 · 2 comments

Comments

@GoldenJoe
Copy link

GoldenJoe commented Jan 24, 2020

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.
@GoldenJoe GoldenJoe changed the title Errors retrieving some bills for congress 116. [Error] Errors retrieving some bills for congress 116. Jan 24, 2020
@GoldenJoe GoldenJoe changed the title [Error] Errors retrieving some bills for congress 116. [Error] Errors retrieving some bills for congress 113-116. Jan 24, 2020
@JoshData
Copy link
Member

Probably fixed by #246?

@dwillis
Copy link
Member

dwillis commented Apr 2, 2020

Can confirm this is fixed. Closing.

@dwillis dwillis closed this as completed Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants