Kaydet (Commit) 21192c6e authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

pyuno: some comments

üst 58aa95c9
......@@ -156,7 +156,10 @@ static PyRef importUnoModule( ) throw ( RuntimeException )
{
PyRef excType, excValue, excTraceback;
PyErr_Fetch( (PyObject **)&excType, (PyObject**)&excValue,(PyObject**)&excTraceback);
PyRef str( PyObject_Repr( excTraceback.get() ), SAL_NO_ACQUIRE );
// As of Python 2.7 this gives a rather non-useful "<traceback object at 0xADDRESS>",
// but it is the best we can do in the absence of uno._uno_extract_printable_stacktrace
// Who knows, a future Python might print something better.
PyRef str( PyObject_Str( excTraceback.get() ), SAL_NO_ACQUIRE );
OUStringBuffer buf;
buf.appendAscii( "python object raised an unknown exception (" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment