Merge pull request #15 from APEbbers/Develop
Added a try-catch to avoid errors due disabled workbenches
This commit is contained in:
commit
d1d5f96d8d
|
@ -64,7 +64,11 @@ def subToolAction(nfo):
|
||||||
else:
|
else:
|
||||||
for workbench in act["workbenches"]:
|
for workbench in act["workbenches"]:
|
||||||
print("Activating workbench " + workbench + " to access tool " + toolPath)
|
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():
|
if runTool():
|
||||||
return
|
return
|
||||||
print(
|
print(
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
<description>Adds a search bar widget for tools, document objects, and preferences</description>
|
<description>Adds a search bar widget for tools, document objects, and preferences</description>
|
||||||
|
|
||||||
<version>1.3.1.1</version>
|
<version>1.3.1.2</version>
|
||||||
|
|
||||||
<date>2022-06-01</date>
|
<date>2022-06-01</date>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user