diff options
author | Christian Struck <christian@struck.se> | 2020-01-19 21:22:41 +0100 |
---|---|---|
committer | Markus Holtermann <info@markusholtermann.eu> | 2020-01-21 00:09:05 +0100 |
commit | 0c1908c1a4ae3cfe7f5da6c733a0fea873805342 (patch) | |
tree | 9e4321b9154bf330cf0cfbfaad2db68079f4c8ca /bvggrabber/api/actualdeparture.py | |
parent | 2540991c4f2f16b7593d169b7b5aa59e6ccaf3c7 (diff) | |
download | bvg-grabber-0c1908c1a4ae3cfe7f5da6c733a0fea873805342.tar.gz bvg-grabber-0c1908c1a4ae3cfe7f5da6c733a0fea873805342.tar.bz2 bvg-grabber-0c1908c1a4ae3cfe7f5da6c733a0fea873805342.zip |
fix new info feature matching a departure
Diffstat (limited to 'bvggrabber/api/actualdeparture.py')
-rw-r--r-- | bvggrabber/api/actualdeparture.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bvggrabber/api/actualdeparture.py b/bvggrabber/api/actualdeparture.py index 7d90ca0..a822154 100644 --- a/bvggrabber/api/actualdeparture.py +++ b/bvggrabber/api/actualdeparture.py @@ -52,6 +52,8 @@ class ActualDepartureQueryApi(QueryApi): for row in rows: if row.parent.name == 'tbody': td = row.find_all('td') + if len(td) != 3: + continue if td: dep = Departure(start=self.station, end=td[2].text.strip(), |