diff --git a/src/Mod/TemplatePyMod/Automation.py b/src/Mod/TemplatePyMod/Automation.py index 8a990d08f7..36f744b013 100644 --- a/src/Mod/TemplatePyMod/Automation.py +++ b/src/Mod/TemplatePyMod/Automation.py @@ -52,7 +52,7 @@ def makeSnapshotWithoutGui(): inp=coin.SoInput() try: inp.setBuffer(iv) - except: + except Exception: tempPath = tempfile.gettempdir() fileName = tempPath + os.sep + "cone.iv" file = open(fileName, "w")