From ff6da9eb809d7f088d0632fc1c83e2cc2de00562 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Wed, 29 Mar 2017 07:40:17 +0200 Subject: [PATCH] Fix pulley size calculation for r_axle being None --- boxes/pulley.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boxes/pulley.py b/boxes/pulley.py index e1b9000..27c5c7b 100644 --- a/boxes/pulley.py +++ b/boxes/pulley.py @@ -127,7 +127,7 @@ class Pulley: pulley_OD += 2*tooth_depth * tooth_depth_scale tooth_depth_scale *= -1 - total_width = max(pulley_OD, 2*r_axle) + total_width = max(pulley_OD, 2*(r_axle or 0.0)) if self.boxes.move(total_width, total_width, move, before=True): return