diff --git a/src/Mod/Path/PathScripts/PathDressupHoldingTags.py b/src/Mod/Path/PathScripts/PathDressupHoldingTags.py index 66e84961c2..3be01251ab 100644 --- a/src/Mod/Path/PathScripts/PathDressupHoldingTags.py +++ b/src/Mod/Path/PathScripts/PathDressupHoldingTags.py @@ -134,10 +134,9 @@ class Tag: self.height = math.fabs(height) self.actualHeight = self.height self.angle = math.fabs(angle) - if hasattr(radius, "Value"): - self.radius = radius.Value - else: - self.radius = FreeCAD.Units.Quantity(radius, FreeCAD.Units.Length).Value + self.radius = getattr( + radius, "Value", FreeCAD.Units.Quantity(radius, FreeCAD.Units.Length).Value + ) self.enabled = enabled self.isSquare = False