mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
2eea7728d2
FormatTransformer.round() called Decimal() directly on the input value, which raises decimal.InvalidOperation when the value is a non-numeric string (a text property, or a value carrying a unit suffix like "12.5 m"). In a spreadsheet export this crashed the entire operation as soon as one element carried such a value. Now round() catches InvalidOperation and returns the value unchanged, the same graceful-fallback convention used by add(). Numeric rounding is unaffected. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>