aboutsummaryrefslogtreecommitdiff
path: root/bvggrabber/api/scheduleddeparture.py
diff options
context:
space:
mode:
Diffstat (limited to 'bvggrabber/api/scheduleddeparture.py')
-rw-r--r--bvggrabber/api/scheduleddeparture.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bvggrabber/api/scheduleddeparture.py b/bvggrabber/api/scheduleddeparture.py
index bceafc7..55634fe 100644
--- a/bvggrabber/api/scheduleddeparture.py
+++ b/bvggrabber/api/scheduleddeparture.py
@@ -70,6 +70,8 @@ class ScheduledDepartureQueryApi(QueryApi):
departures = []
for row in rows:
tds = row.find_all('td')
+ if len(tds) != 3:
+ continue
dep = Departure(start=self.station,
end=tds[2].text.strip(),
when=tds[0].text.strip(),