diff --git a/ResultsToolbar.py b/ResultsToolbar.py
index ac49aca..d179a22 100644
--- a/ResultsToolbar.py
+++ b/ResultsToolbar.py
@@ -64,7 +64,11 @@ def subToolAction(nfo):
else:
for workbench in act["workbenches"]:
print("Activating workbench " + workbench + " to access tool " + toolPath)
- FreeCADGui.activateWorkbench(workbench)
+ try:
+ FreeCADGui.activateWorkbench(workbench)
+ except Exception:
+ print("SearchBar: Workbench not present! Was it disabled?")
+ return
if runTool():
return
print(
diff --git a/package.xml b/package.xml
index 0b0e04a..c6e15d8 100644
--- a/package.xml
+++ b/package.xml
@@ -5,7 +5,7 @@
Adds a search bar widget for tools, document objects, and preferences
- 1.3.1.1
+ 1.3.1.2
2022-06-01