frontends (dbus): error is not truncated anymore if it's not a SàT error.
This commit is contained in:
parent
c00daf4a68
commit
3a983b17db
2 changed files with 10 additions and 2 deletions
|
|
@ -43,7 +43,11 @@ def dbus_to_bridge_exception(dbus_e):
|
|||
@param dbus_e (DBusException)
|
||||
@return: BridgeException
|
||||
"""
|
||||
name = dbus_e.get_dbus_name()[len(const_ERROR_PREFIX) + 1:]
|
||||
full_name = dbus_e.get_dbus_name()
|
||||
if full_name.startswith(const_ERROR_PREFIX):
|
||||
name = dbus_e.get_dbus_name()[len(const_ERROR_PREFIX) + 1:]
|
||||
else:
|
||||
name = full_name
|
||||
# XXX: dbus_e.args doesn't contain the original DBusException args, but we
|
||||
# receive its serialized form in dbus_e.args[0]. From that we can rebuild
|
||||
# the original arguments list thanks to ast.literal_eval (secure eval).
|
||||
|
|
|
|||
|
|
@ -43,7 +43,11 @@ def dbus_to_bridge_exception(dbus_e):
|
|||
@param dbus_e (DBusException)
|
||||
@return: BridgeException
|
||||
"""
|
||||
name = dbus_e.get_dbus_name()[len(const_ERROR_PREFIX) + 1:]
|
||||
full_name = dbus_e.get_dbus_name()
|
||||
if full_name.startswith(const_ERROR_PREFIX):
|
||||
name = dbus_e.get_dbus_name()[len(const_ERROR_PREFIX) + 1:]
|
||||
else:
|
||||
name = full_name
|
||||
# XXX: dbus_e.args doesn't contain the original DBusException args, but we
|
||||
# receive its serialized form in dbus_e.args[0]. From that we can rebuild
|
||||
# the original arguments list thanks to ast.literal_eval (secure eval).
|
||||
|
|
|
|||
Loading…
Reference in a new issue