When calling the DBus method remove_plugin a TypeError? exception is raised:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/var/lib/python-support/python2.6/dbus/proxies.py", line 140, in call
**keywords)
File "/var/lib/python-support/python2.6/dbus/connection.py", line 622, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError?: Traceback (most recent call last):
File "/var/lib/python-support/python2.6/dbus/service.py", line 745, in _message_cb
_method_reply_return(connection, message, method_name, signature, *retval)
File "/var/lib/python-support/python2.6/dbus/service.py", line 252, in _method_reply_return
reply.append(signature=signature, *retval)
TypeError?: Expected a string or unicode object
To avoid it need to cast the returned object to str or unicode.
Patch attached that cast the result to str (as done in the add_plugin).