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

Feature/bill sponsor #67

Merged
merged 27 commits into from
Dec 2, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
summary attribute error handled
  • Loading branch information
kapphire committed Nov 18, 2020
commit d35a7fe8d1c81e414d6aa91696f3ca27850c5b19
9 changes: 8 additions & 1 deletion server_py/flatgov/common/relatedBills.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
from json import dump
import sys
import os
Expand Down Expand Up @@ -106,7 +107,13 @@ def addSponsors():

sponsorItem = deep_get(billData, 'sponsor')
cosponsorItems = deep_get(billData, 'cosponsors')
summary = billData.get('summary', {}).get('text')

try:
summary = billData.get('summary', {}).get('text')
except Exception as e:
logger.info(e)
logger.info(json.dumps(billData))
summary = None
bill_type = billData.get('bill_type')
congress = billData.get('congress')
number = billData.get('number')
Expand Down