summaryrefslogtreecommitdiff
path: root/bvggrabber
diff options
context:
space:
mode:
Diffstat (limited to 'bvggrabber')
-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 69defcf..fbafe66 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) < 2:
+ continue
stro = row.find_all('strong')
dep = Departure(start=self.station,
end=tds[2].text.strip(),