From 9849228ef1c875c74fe439f6b80f398c1a9f81ed Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Thu, 21 Jan 2016 11:58:53 +0100 Subject: [PATCH] Ignore errors in the Velib API --- velib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/velib.py b/velib.py index 95b31ba..cff29b7 100755 --- a/velib.py +++ b/velib.py @@ -138,7 +138,8 @@ def update_stations(): station["bonus"], station["bike_stands"])) except TypeError: - pass + conn.rollback() + return c.execute("INSERT INTO " + "stationsstats(station_id, available_bikes, free_stands, status, updated) " +