dbus/python service.py,1.18,1.19
Robert McQueen
robot101 at freedesktop.org
Mon Nov 14 12:59:35 PST 2005
Update of /cvs/dbus/dbus/python
In directory gabe:/tmp/cvs-serv1777/python
Modified Files:
service.py
Log Message:
2005-11-15 Robert McQueen <robot101 at debian.org>
* python/service.py: Include the traceback in the error reply when we
send an exception over the bus. _BEST_ _PATCH_ _EVER_
Index: service.py
===================================================================
RCS file: /cvs/dbus/dbus/python/service.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- service.py 14 Nov 2005 02:53:29 -0000 1.18
+++ service.py 14 Nov 2005 20:59:32 -0000 1.19
@@ -2,6 +2,8 @@
import dbus_bindings
import _dbus
import operator
+import traceback
+
from exceptions import UnknownMethodException
from decorators import method
from decorators import signal
@@ -170,7 +172,7 @@
else:
name = 'org.freedesktop.DBus.Python.%s.%s' % (exception.__module__, exception.__class__.__name__)
- contents = str(exception)
+ contents = traceback.format_exc()
reply = dbus_bindings.Error(message, name, contents)
connection.send(reply)
More information about the dbus-commit
mailing list