PartDesign: [skip ci] if numpy fails to load due a RuntimeError then handle this exception but still load the workbench

This commit is contained in:
wmayer
2020-11-15 11:47:19 +01:00
parent ed175c9f66
commit 55af73b07a

View File

@@ -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: