Skip to content

Commit

Permalink
Fixes #166 Set changed size error during run
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Smith committed Feb 9, 2015
1 parent 7416ef3 commit 4eadc4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
TradeDangerous, Copyright (C) Oliver "kfsone" Smith, July 2014
==============================================================================

[wip]
. (kfsone) Fixed 'set changed size' error in run command

v6.9.2 Feb 08 2015
. (kfsone) Feature #158 Find rares based on distance from multiple systems
"--away <ly>" and "--from <system1> --from <system2> ..."
Expand Down
12 changes: 6 additions & 6 deletions commands/run_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,12 +461,12 @@ def checkStationSuitability(cmdenv, station, src=None):
def filterStationSet(src, cmdenv, stnSet):
if not stnSet:
return stnSet
for place in stnSet:
if not isinstance(place, Station):
continue
if not checkStationSuitability(cmdenv, place):
stnSet.remove(place)
continue
unsuited = set(
place for place in stnSet
if isinstance(place, Station) and \
not checkStationSuitability(cmdenv, place)
)
stnSet -= unsuited
if not stnSet:
raise CommandLineError(
"No {} station met your criteria.".format(
Expand Down

0 comments on commit 4eadc4c

Please sign in to comment.