diff --git a/src/Mod/Part/App/AppPartPy.cpp b/src/Mod/Part/App/AppPartPy.cpp index 6d5640d87..edd96dfaf 100644 --- a/src/Mod/Part/App/AppPartPy.cpp +++ b/src/Mod/Part/App/AppPartPy.cpp @@ -274,10 +274,11 @@ static PyObject * exporter(PyObject *self, PyObject *args) } } } - } PY_CATCH; - TopoShape shape(comp); - shape.write(filename); + TopoShape shape(comp); + shape.write(filename); + + } PY_CATCH; Py_Return; }