diff -r 0773b4e5fd10 -r d389cdabda00 buses.py --- 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)