Skip to content

Commit c925c3f

Browse files
fix: skip votes for bills missing from bill_dict in NJ scraper (#5707)
1 parent 30ebafe commit c925c3f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scrapers/nj/bills.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,9 @@ def scrape_bills(self, session, year_abr):
456456
f"Action string is empty, so cannot save VoteEvent for vote {vote_id}"
457457
)
458458
else:
459+
if bill_id not in bill_dict:
460+
self.warning("unknown bill %s in vote database" % bill_id)
461+
continue
459462
if vote_id not in votes:
460463
votes[vote_id] = VoteEvent(
461464
start_date=TIMEZONE.localize(date),

0 commit comments

Comments
 (0)