diff --git a/extensions/fablabchemnitz/chain_paths.py b/extensions/fablabchemnitz/chain_paths.py index eb031fde..d07b6f77 100644 --- a/extensions/fablabchemnitz/chain_paths.py +++ b/extensions/fablabchemnitz/chain_paths.py @@ -142,8 +142,7 @@ class ChainPaths(inkex.Effect): return segments = [] - for id in self.svg.selected: - node = self.svg.selected[id] + for id, node in self.svg.selected.items(): if node.tag != inkex.addNS('path', 'svg'): inkex.errormsg("Object " + id + " is not a path. Try\n - Path->Object to Path\n - Object->Ungroup") return diff --git a/extensions/fablabchemnitz/contourscanner/contour_scanner.py b/extensions/fablabchemnitz/contourscanner/contour_scanner.py index 0611221a..660ddaad 100644 --- a/extensions/fablabchemnitz/contourscanner/contour_scanner.py +++ b/extensions/fablabchemnitz/contourscanner/contour_scanner.py @@ -241,7 +241,8 @@ class ContourScanner(inkex.Effect): # polySegsNode.attrib['style'] = closingLineStyle except AssertionError as e: # we skip AssertionError - inkex.utils.debug("Error: " + str(e)) + #inkex.utils.debug("Error: " + str(e)) + continue #if the intersectionGroup was created but nothing attached we delete it again to prevent messing the SVG XML tree if len(intersectionGroup.getchildren()) == 0: intersectionGroupParent = intersectionGroup.getparent()