Catch exceptions in refresh()
This commit is contained in:
parent
9f87527d9a
commit
3c3199e3eb
|
|
@ -352,6 +352,7 @@ class GTFSClient():
|
|||
"""
|
||||
Create and enqueue the refreshed stop data
|
||||
"""
|
||||
try:
|
||||
# Retrieve the GTFS-R deltas
|
||||
deltas, canceled_trips, added_stops = self.__poll_gtfsr_deltas()
|
||||
if len(deltas) > 0 or len(canceled_trips) > 0 or len(added_stops) > 0:
|
||||
|
|
@ -390,3 +391,5 @@ class GTFSClient():
|
|||
self._update_queue.put(arrivals)
|
||||
|
||||
gc.collect()
|
||||
except Exception as e:
|
||||
print("Exception in refresh: {}".format(str(e)))
|
||||
|
|
|
|||
Loading…
Reference in New Issue