diff --git a/commands/run_cmd.py b/commands/run_cmd.py index 92ca1ba1..e5248d05 100644 --- a/commands/run_cmd.py +++ b/commands/run_cmd.py @@ -1071,6 +1071,11 @@ def routeStillHasAChance(r): preCrop = len(routes) routes[:] = [x for x in routes if routeStillHasAChance(x)] + if not routes: + raise NoDataError( + "No routes are in-range of any end stations at the end of hop {}" + .format(hopNo) + ) pruned = preCrop - len(routes) if pruned: cmdenv.NOTE("Pruned {} origins too far from any end stations", pruned)