[OTHER] Catch only Exception, not BaseException
This commit is contained in:
@@ -47,7 +47,7 @@ class PartDesignWorkbench ( Workbench ):
|
||||
print("Wizard shaft module cannot be loaded")
|
||||
try:
|
||||
from FeatureHole import HoleGui
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
import PartDesignGui
|
||||
|
||||
@@ -11,7 +11,7 @@ Gui=FreeCADGui
|
||||
def proceed():
|
||||
try:
|
||||
compute()
|
||||
except:
|
||||
except Exception:
|
||||
hide()
|
||||
QtGui.QApplication.restoreOverrideCursor()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user