Skip to content

VA Bill Actions and Statuses Missing fix#5725

Merged
jessemortenson merged 4 commits into
openstates:mainfrom
harshitasingh360:DATA-5702/VA-Bill-Actions-and-Statuses-Missing
Jul 8, 2026
Merged

VA Bill Actions and Statuses Missing fix#5725
jessemortenson merged 4 commits into
openstates:mainfrom
harshitasingh360:DATA-5702/VA-Bill-Actions-and-Statuses-Missing

Conversation

@harshitasingh360

@harshitasingh360 harshitasingh360 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Root cause: The VA scraper crashed with a KeyError on governor/executive actions because they use a space-prefixed format (" Vetoed by Governor", " Approved by Governor") instead of a chamber-letter prefix. This halted action ingestion, freezing bills at "passed."

  • Scraper runs cleanly (3,646 bills, 38,049 votes — previously crashed)
  • SB542 → executive-veto, SB518 → executive-signature, HB229 → executive-signature

@showerst

showerst commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

I'd change this flow, because we don't know that all unseen actions will be executive. "legislature" is a better fallback.

Maybe something like:

elif 'governor' in cleaned_action.lower():
    chamber = "executive"
    ...
else:
   chamber = "legislature"

@harshitasingh360 harshitasingh360 changed the title (In Progress) VA Bill Actions and Statuses Missing fix VA Bill Actions and Statuses Missing fix Jul 7, 2026
@jessemortenson
jessemortenson merged commit a49be4b into openstates:main Jul 8, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants