codeforamerica / cfapi

The Code for America API. Tracks and motivates activity and participation across the civic technology movement.
http://codeforamerica.org/api
MIT License
113 stars 52 forks source link

Commit_status bug #303

Closed ondrae closed 8 years ago

ondrae commented 8 years ago

An error on run_update.py. SHhuld be easy to fix.

https://api.github.com/repos/codeforamerica/blahblahblah/commits/master/status
Traceback (most recent call last):
  File "run_update.py", line 1376, in <module>
    main(org_name=org_name, org_sources=org_sources)
  File "run_update.py", line 1284, in main
    projects = get_projects(organization)
  File "run_update.py", line 410, in get_projects
    projects = [update_project_info(proj) for proj in projects]
  File "run_update.py", line 676, in update_project_info
    project["commit_status"] = got.json()['state']
KeyError: 'state'