From 63d50560ef18f09ad8d310f5fb6bd6035ed3299e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Sat, 24 Dec 2016 02:42:19 +0100 Subject: [PATCH] fix error 500 if routing within levels fails --- src/c3nav/routing/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/routing/graph.py b/src/c3nav/routing/graph.py index d42c32c0..c8ea597e 100644 --- a/src/c3nav/routing/graph.py +++ b/src/c3nav/routing/graph.py @@ -388,7 +388,7 @@ class Graph: o_points = orig_room_transfer_points[level] d_points = dest_room_transfer_points[level] - if not len(orig_points) or not len(dest_points): + if not len(o_points) or not len(d_points): continue shortest_paths = routers[level].shortest_paths[o_points[:, None], d_points]