From 2fdc4c7a10f822f006a4bd0e47999475e9ef4139 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 26 Apr 2013 17:18:25 +0200 Subject: [PATCH] Better exception handling when writing STEP/IGES/BREP files via Python --- src/Mod/Part/App/AppPartPy.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; }