From d90d176a8654688cac900df8b7c5316af292fd8a Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Fri, 19 Feb 2021 21:14:15 -0600 Subject: [PATCH] Path: Catch `openEdges` error if `None` --- src/Mod/Path/PathScripts/PathProfile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathProfile.py b/src/Mod/Path/PathScripts/PathProfile.py index 027e70193e..948c1dec56 100644 --- a/src/Mod/Path/PathScripts/PathProfile.py +++ b/src/Mod/Path/PathScripts/PathProfile.py @@ -660,8 +660,9 @@ class ObjectProfile(PathAreaOp.ObjectOp): else: PathLog.error(self.inaccessibleMsg) - tup = openEdges, False, 'OpenEdge', 0.0, 'X', obj.StartDepth.Value, obj.FinalDepth.Value - shapes.append(tup) + if openEdges: + tup = openEdges, False, 'OpenEdge', 0.0, 'X', obj.StartDepth.Value, obj.FinalDepth.Value + shapes.append(tup) else: PathLog.error(self.inaccessibleMsg) # Eif