Add null check to chi_policeboard
@@ -10,7 +10,7 @@ class ChiPoliceBoardSpider(CityScrapersSpider):
name = 'chi_policeboard'
timezone = 'America/Chicago'
agency = 'Chicago Police Board'
- start_urls = ['http://chicago.gov/city/en/depts/cpb/provdrs/public_meetings.html']
+ start_urls = ['https://chicago.gov/city/en/depts/cpb/provdrs/public_meetings.html']
def parse(self, response):
"""
@@ -25,6 +25,8 @@ class ChiPoliceBoardSpider(CityScrapersSpider):
for item in response.xpath('//p[contains(@style,"padding-left")]'):
start_date = self._parse_start_date(item, year)
+ if not start_date:
+ continue
meeting = Meeting(
title='Police Board',
description='',
