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

BUG: Sync Bills errors with too many legislators #115

Closed
lazarus1331 opened this issue May 7, 2019 · 0 comments
Closed

BUG: Sync Bills errors with too many legislators #115

lazarus1331 opened this issue May 7, 2019 · 0 comments
Assignees

Comments

@lazarus1331
Copy link
Collaborator

[07/May/2019 00:53:45] WARNING - influencetx.openstates.utils:118: Processing HB 1506 [07/May/2019 00:53:45] WARNING - influencetx.openstates.utils:144: Finding Legislator: Perez, in House [07/May/2019 00:53:45] WARNING - influencetx.openstates.utils:144: Finding Legislator: Johnson, in House Traceback (most recent call last): File "manage.py", line 34, in <module> ... File "/usr/src/app/influencetx/openstates/utils.py", line 121, in deserialize_openstates_bill sponsor_models = deserialize_sponsor_names(adapted_data['chamber'], adapted_data.get('sponsors', [])) File "/usr/src/app/influencetx/openstates/utils.py", line 194, in deserialize_sponsor_names legislator = find_legislator_by_last_name(chamber, aname) File "/usr/src/app/influencetx/openstates/utils.py", line 148, in find_legislator_by_last_name last_name=name File "/usr/local/lib/python3.7/site-packages/django/db/models/manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 384, in get (self.model._meta.object_name, num) influencetx.legislators.models.MultipleObjectsReturned: get() returned more than one Legislator -- it returned 3!

@lazarus1331 lazarus1331 self-assigned this May 7, 2019
lazarus1331 added a commit that referenced this issue May 8, 2019
#115: added handler for sync bill error
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

1 participant