Commit 94fdc674 authored by Lorenzo Marcantonio's avatar Lorenzo Marcantonio
Browse files

Added 'parachute' std::exception handling to python interface

parent 0938f2cf
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -55,6 +55,13 @@
        PyErr_SetString(PyExc_IOError,ExceptionError);
        return NULL;
    }
    catch( std::exception &e )
    {
        char ExceptionError[256];
        sprintf( ExceptionError, "%s\n", e.what() );
        PyErr_SetString(PyExc_IOError,ExceptionError);
        return NULL;
    }
    catch( ... )
    {
        SWIG_fail;