Remote control: Better handle unknown types
there is no corresponding GLib.Variant for None, use conversion to string as workaround
This commit is contained in:
parent
8e5d3102cf
commit
0d858180df
|
@ -62,7 +62,7 @@ def get_dbus_struct(obj):
|
||||||
result.insert_value(key, get_dbus_struct(value))
|
result.insert_value(key, get_dbus_struct(value))
|
||||||
return result.end()
|
return result.end()
|
||||||
# unknown type
|
# unknown type
|
||||||
return None
|
return GLib.Variant('s', str(obj))
|
||||||
|
|
||||||
|
|
||||||
class Server:
|
class Server:
|
||||||
|
|
Loading…
Reference in New Issue