diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-08-20 17:44:53 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-08-21 01:46:09 +0200 |
commit | 21192c6ea981a7f2abb03b53381ecf67980ddb65 (patch) | |
tree | 7f73fcdbd05532ca3ab6f454788e2b92a729891b | |
parent | Janitorial: remove unnecessary const_casts (diff) | |
download | core-21192c6ea981a7f2abb03b53381ecf67980ddb65.tar.gz core-21192c6ea981a7f2abb03b53381ecf67980ddb65.zip |
pyuno: some comments
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 5 |
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 (" ); |