From: Robert McQueen Date: Mon, 14 Nov 2005 20:59:32 +0000 (+0000) Subject: 2005-11-15 Robert McQueen X-Git-Tag: dbus-0.60~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d4595960e9edc679cb2656d3ff59d2f899b0f16b;p=thirdparty%2Fdbus.git 2005-11-15 Robert McQueen * python/service.py: Include the traceback in the error reply when we send an exception over the bus. _BEST_ _PATCH_ _EVER_ --- diff --git a/ChangeLog b/ChangeLog index 8f40bc22b..ee86d0514 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-15 Robert McQueen + + * python/service.py: Include the traceback in the error reply when we + send an exception over the bus. _BEST_ _PATCH_ _EVER_ + 2005-11-14 David Zeuthen Patch from Timo Hoenig . diff --git a/python/service.py b/python/service.py index 409fc78a8..6c3561adf 100644 --- a/python/service.py +++ b/python/service.py @@ -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 @@ def _method_reply_error(connection, message, exception): 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)