Skip to content

Commit 9b8b24a

Browse files
author
John Seekins
committed
fix OR bill scraper and silence some errors in local compose file
Signed-off-by: John Seekins <[email protected]>
1 parent a4d121f commit 9b8b24a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ services:
9898
- openstates-network
9999
command: ["postgres", "-c", "log_statement=all"]
100100
healthcheck:
101-
test: ["CMD-SHELL", "pg_isready -q -d db -U db"]
101+
test: ["CMD-SHELL", "pg_isready -q -d openstatesorg -U openstates"]
102102
interval: 10s
103103
timeout: 5s
104104
retries: 15

scrapers/or/bills.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def scrape_bills(self, session):
6464
title=measure["RelatingTo"],
6565
classification=self.bill_types[measure["MeasurePrefix"][1:]],
6666
)
67-
if "MeasureSummary" in measure:
67+
if measure.get("MeasureSummary", None):
6868
bill.add_abstract(measure["MeasureSummary"].strip(), note="summary")
6969

7070
if measure["RelatingTo"] is None:

0 commit comments

Comments
 (0)