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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user