Ignore errors in the Velib API
This commit is contained in:
parent
ed329190be
commit
3f151d17f5
2
velib.py
2
velib.py
@ -137,6 +137,8 @@ def update_stations():
|
|||||||
station["banking"],
|
station["banking"],
|
||||||
station["bonus"],
|
station["bonus"],
|
||||||
station["bike_stands"]))
|
station["bike_stands"]))
|
||||||
|
except TypeError:
|
||||||
|
pass
|
||||||
|
|
||||||
c.execute("INSERT INTO " +
|
c.execute("INSERT INTO " +
|
||||||
"stationsstats(station_id, available_bikes, free_stands, status, updated) " +
|
"stationsstats(station_id, available_bikes, free_stands, status, updated) " +
|
||||||
|
Loading…
Reference in New Issue
Block a user