buses.py

changeset 81
d389cdabda00
parent 80
0773b4e5fd10
child 88
3b86597c5a88
--- a/buses.py	Sun Jan 07 00:56:15 2018 +0200
+++ b/buses.py	Sun Jan 07 01:05:38 2018 +0200
@@ -284,6 +284,9 @@
 						bus_stops[stop_reference].region = region
 					except KeyError:
 						pass
+			for bus_stop in bus_stops.values():
+				if not hasattr(bus_stop, 'region'):
+					bus_stop.region = None
 		print('%d pysäkkiä' % len(bus_stops), file = stderr)
 
 

mercurial