mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-03-11 13:01:39 +01:00
2005-11-15 Robert McQueen <robot101@debian.org>
* python/service.py: Include the traceback in the error reply when we send an exception over the bus. _BEST_ _PATCH_ _EVER_
This commit is contained in:
parent
5e948ff7cd
commit
d4595960e9
2 changed files with 8 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2005-11-15 Robert McQueen <robot101@debian.org>
|
||||
|
||||
* 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 <davidz@redhat.com>
|
||||
|
||||
Patch from Timo Hoenig <thoenig@suse.de>.
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue