Philipp Hörist pushed to branch master at gajim / gajim

Commits:
c7c74998 by André Apitzsch at 2018-09-18T20:23:58Z
Remote control: Better handle unknown types

there is no corresponding GLib.Variant for None,
use conversion to string as workaround

- - - - -


1 changed file:

- gajim/remote_control.py


Changes:

=====================================
gajim/remote_control.py
=====================================
--- a/gajim/remote_control.py
+++ b/gajim/remote_control.py
@@ -62,7 +62,7 @@ def get_dbus_struct(obj):
             result.insert_value(key, get_dbus_struct(value))
         return result.end()
     # unknown type
-    return None
+    return GLib.Variant('s', str(obj))
 
 
 class Server:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/c7c74998f23dae88479e46bd02ce8ee677f1313f

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/c7c74998f23dae88479e46bd02ce8ee677f1313f
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to