From ef4622e015853d01d01a12707dc4df5d45acfbe0 Mon Sep 17 00:00:00 2001 From: lorenz Date: Wed, 17 Feb 2021 12:23:24 +0100 Subject: [PATCH] importError->ImportError --- freecad/gears/features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freecad/gears/features.py b/freecad/gears/features.py index c0c8a24..418e45c 100644 --- a/freecad/gears/features.py +++ b/freecad/gears/features.py @@ -920,7 +920,7 @@ class LanternGear(BaseGear): try: import scipy.optimize phi_min = scipy.optimize.root(find_phi_min, (phi_max + r_r / r_0 * 4) / 5).x[0] # , r_r / r_0, phi_max) - except importError: + except ImportError: App.Console.Warning("scipy not available. Can't compute numerical root. Leads to a wrong bolt-radius") phi_min = r_r / r_0