fixes 0003860: Debian bug #920971 - C++ exception on DXF import

This commit is contained in:
wmayer
2019-02-25 23:46:31 +01:00
parent be45d5e7ba
commit d3e008e46c
2 changed files with 27 additions and 9 deletions

View File

@@ -416,6 +416,9 @@ private:
dxf_file.DoRead(IgnoreErrors);
pcDoc->recompute();
}
catch (const Standard_Failure& e) {
throw Py::RuntimeError(e.GetMessageString());
}
catch (const Base::Exception& e) {
throw Py::RuntimeError(e.what());
}