Don't exit with error when source is target for maze router

This commit is contained in:
mrg 2020-12-16 16:57:29 -08:00
parent d5ed45dadf
commit 2b0f8bf263
1 changed files with 1 additions and 2 deletions

View File

@ -1000,8 +1000,7 @@ class router(router_tech):
# Double check source and taget are not same node, if so, we are done!
for k, v in self.rg.map.items():
if v.source and v.target:
debug.error("Grid cell is source and target! {}".format(k))
return False
return True
# returns the path in tracks
(path, cost) = self.rg.route(detour_scale)