Skip to content

Commit

Permalink
Wasn't populating avoidPlaces in commandenv
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Smith committed Nov 5, 2014
1 parent b0e8b0e commit dc1560b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion commands/commandenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ def checkAvoids(self):
try:
avoidances = self._props.avoid
if not avoidances:
return
raise AttributeError("Fake")
except AttributeError:
self.avoidPlaces = []
return

tdb = self.tdb
Expand Down Expand Up @@ -180,6 +181,8 @@ def checkAvoids(self):
[ station.name() for station in avoidStations ]
))

self.avoidPlaces = self.avoidSystems + self.avoidStations


def checkVias(self):
""" Process a list of station names and build them into a list of waypoints. """
Expand Down

0 comments on commit dc1560b

Please sign in to comment.