[python] Nicer exceptions
René 'Necoro' Neumann
lists at necoro.eu
Tue Apr 1 12:54:11 PDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
it is currently not really possible to pass data via Exceptions from the
server to the client, as the traceback _plus_ additional data is
mangled into one string.
This leads to things like:
name, data = str(e).split("\n")[-2].split(": ")[1:]
which is likely to break somewhere. (and is ugly like hell).
Would there be the chance, that DBusExceptions provide a "traceback" and
a "message" member, so that the traceback does not get included into the
Additionally, this is done already in the server - thus the string magic
above will only work, if the server is using python-dbus. I guess that
the exceptions look different, if other dbus bindings are used.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the dbus