Skip to content

Commit

Permalink
Fix for --towards
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Feb 25, 2015
1 parent bd01d09 commit 88fd4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/run_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ def run(results, cmdenv, tdb):
)
break
routes = newRoutes
if goalSystem:
if routes and goalSystem:
routes.sort(
key=lambda route:
0 if route.route[-1].system is goalSystem else 1
Expand Down

0 comments on commit 88fd4d5

Please sign in to comment.