summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2011-08-20 17:44:53 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2011-08-21 01:46:09 +0200
commit21192c6ea981a7f2abb03b53381ecf67980ddb65 (patch)
tree7f73fcdbd05532ca3ab6f454788e2b92a729891b /pyuno
parent58aa95c94459aec8cb467f3d6ec8ac9491c7a46c (diff)
pyuno: some comments
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_runtime.cxx5
1 files changed, 4 insertions, 1 deletions
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 "<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 (" );