diff options
-rw-r--r-- | bvggrabber/api/scheduleddeparture.py | 4 | ||||
-rwxr-xr-x | setup.py | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/bvggrabber/api/scheduleddeparture.py b/bvggrabber/api/scheduleddeparture.py index 101f692..fbafe66 100644 --- a/bvggrabber/api/scheduleddeparture.py +++ b/bvggrabber/api/scheduleddeparture.py @@ -70,11 +70,13 @@ class ScheduledDepartureQueryApi(QueryApi): departures = [] for row in rows: tds = row.find_all('td') + if len(tds) < 2: + continue stro = row.find_all('strong') dep = Departure(start=self.station, end=tds[2].text.strip(), when=tds[0].text.strip(), - line=stro[1].text.strip()) + line=stro[0].text.strip()) departures.append(dep) return Response(True, self.station, departures) else: @@ -14,8 +14,8 @@ setup( name='bvg-grabber', description='Querying the upcoming public transport departures in Berlin', long_description=description, - version='0.1.3', - url='https://github.com/MarkusH/bvg-grabber', + version='0.1.5', + url='https://git.bananach.space/bvg-grabber.git/', author='Christian Struck, Markus Holtermann', author_email='info@markusholtermann.eu', license='BSD', |