diff --git a/src/bonsai/bonsai/bim/module/drawing/helper.py b/src/bonsai/bonsai/bim/module/drawing/helper.py index 9984e5d5ca..62b4d50b66 100644 --- a/src/bonsai/bonsai/bim/module/drawing/helper.py +++ b/src/bonsai/bonsai/bim/module/drawing/helper.py @@ -305,7 +305,7 @@ def format_distance( if unit_length == "MILLIMETERS": value = value / 1000 - if precision: + if precision and isinstance(precision, float): value = precision * round(float(value) / precision) if decimal_places is not None: