From 7a8f9c49b0f0b9ed5fc730e9021cffb7fd04d13c Mon Sep 17 00:00:00 2001 From: Sergey Vartanov Date: Fri, 12 Nov 2021 03:29:53 +0300 Subject: [PATCH] Add empty outers check. Way can have no nodes if it was deleted. --- map_machine/constructor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/map_machine/constructor.py b/map_machine/constructor.py index f0678f7..59d394b 100644 --- a/map_machine/constructor.py +++ b/map_machine/constructor.py @@ -225,6 +225,9 @@ class Constructor: """ assert len(outers) >= 1 + if len(outers[0]) == 0: + return + if not self.check_level(line.tags): return