From 21192c6ea981a7f2abb03b53381ecf67980ddb65 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Sat, 20 Aug 2011 17:44:53 +0200 Subject: pyuno: some comments --- pyuno/source/module/pyuno_runtime.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pyuno') diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index 5cac9a64edea..b62181e92ee4 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -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 "", + // 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 (" ); -- cgit