From 55af73b07ad98c20ab5d6152fb8f9f4e7e32f238 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 15 Nov 2020 11:47:19 +0100 Subject: [PATCH] PartDesign: [skip ci] if numpy fails to load due a RuntimeError then handle this exception but still load the workbench --- src/Mod/PartDesign/InitGui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/PartDesign/InitGui.py b/src/Mod/PartDesign/InitGui.py index c935ffb033..f7b7ac747e 100644 --- a/src/Mod/PartDesign/InitGui.py +++ b/src/Mod/PartDesign/InitGui.py @@ -39,7 +39,10 @@ class PartDesignWorkbench ( Workbench ): def Initialize(self): # load the module try: + import traceback from PartDesign.WizardShaft import WizardShaft + except RuntimeError: + print ("{}".format(traceback.format_exc())) except ImportError: print("Wizard shaft module cannot be loaded") try: