Ignore errors in the Velib API
This commit is contained in:
parent
3f151d17f5
commit
9849228ef1
3
velib.py
3
velib.py
@ -138,7 +138,8 @@ def update_stations():
|
|||||||
station["bonus"],
|
station["bonus"],
|
||||||
station["bike_stands"]))
|
station["bike_stands"]))
|
||||||
except TypeError:
|
except TypeError:
|
||||||
pass
|
conn.rollback()
|
||||||
|
return
|
||||||
|
|
||||||
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