[OTHER] Catch only Exception, not BaseException

This commit is contained in:
Chris Hennes
2021-02-10 14:09:11 -06:00
committed by wwmayer
parent a7522c384e
commit 6b16e12d7c
18 changed files with 38 additions and 38 deletions

View File

@@ -37,13 +37,13 @@ def pythonToolbars():
if hasattr(Gui, "draftToolBar"):
try:
Gui.draftToolBar.Activated()
except:
except Exception:
m = "Persistent toolbars: draftToolBar toolbar not managed.\n"
App.Console.PrintMessage(m)
if hasattr(Gui, "Snapper"):
try:
Gui.Snapper.show()
except:
except Exception:
m = "Persistent toolbars: Snapper toolbar not managed.\n"
App.Console.PrintMessage(m)
else: