Fix Python exception handling

This commit is contained in:
wmayer
2013-07-19 12:27:44 +02:00
parent 79c49e4939
commit 9b1da4cbe9
2 changed files with 7 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ void AppCompleteExport initComplete()
try {
Base::Interpreter().loadModule("Draft");
}
catch (const Base::PyException& e) {
catch (const Base::Exception& e) {
// If called from console then issue a message but don't stop with an error
PySys_WriteStdout("Import error: %s\n", e.what());
}